Category : p-table

I’m trying to make the p-table scrollbar scroll to a certain position. It doesn’t seem to do anything at all. Here’s my code: ngAfterViewInit(): void { this.table.scrollTo({‘top’: 200}) } "this.table" is @ViewChild(‘dt’, {static: false}) public table: Table; and in the template file it is defined this way: <p-table #dt [value]="items" class="ui-rtl" [styleClass]="styleClass" [scrollable]="true" [columns]="columns" scrollHeight="790px" ..

Read more

I’m new to Angular and getting a Issue at the PrimeNG p-table. This is my p-table <p-table [value]="data" [lazy]="true" (onLazyLoad)="loadData($event)" [multiSortMeta]="sort" …. > When anything changes I come in my loadData Method. loadData(event): void { this.dataservice.loadData(..fields from event…).subscribe(result => { this.data = result.data; this.sort = result.sort; // <- This run into infinity loop }) } ..

Read more

I am using p- table in my component and trying to use the export to excel function in p-table. my data looks like this… [{ LanguageCountryCode: "enUSA", Messages: [ {DateTime: "2021-01-03T18:52:58.0003345", Log4NetLevel: "INFO", UniqueID: "DC85D61C-5154-496C-B94F-10300B273706", Message: "received filter request using HTTP GET"}, {DateTime: "2021-01-03T18:52:58.0003346", Log4NetLevel: "INFO", UniqueID: "2C16E2AE-C5F7-4C0A-82C2-CB8CB3DFD249", Message: "starting request"}, {DateTime: "2021-01-03T18:52:58.0003347", Log4NetLevel: "DEBUG", ..

Read more

I am using Angular 9, PrimeNG p-table component. <p-table [value]="cars" selectionMode="multiple" dataKey="id" [(selection)]="selection"> So, what is a problem. I have 5 rows and for each row I have checkbox. When I select some row or rows, ‘selection’ is populated and checkboxes are ‘checked’ but when I manually pust item to ‘selection’ list – I can’t ..

Read more