Questions tagged [primeng-turbotable]

Questions about PrimeNG's TurboTable for displaying data in a table, and how to use TurboTable's API.

Questions about PrimeNG's TurboTable, which is used for displaying data in a table. Any question about how to use the table, how the table works, or related questions go here.

187 questions
4
votes
4 answers

Set page selection to the last page of PrimeNG p-table

I need to have the selected page of my p-table to be the last page. I am able to get my table object: @ViewChild('myTable') myTable: DataTable; ngOnInit() { this.subService.subsUpdated.subscribe(result => { this.fetchSubcontracts(); …
Drew13
  • 1,301
  • 5
  • 28
  • 50
4
votes
1 answer

Angular5 - PrimeNG - p-table component paginator selected tab resets to first tab on data reload

PrimeNG, p-table component when the data is reloaded the table resets to the first paginator tab. Is there any way to stop that behaviour and make the paginator to remain in the same selected tab (for example 2 or 4 or 5 etc) when the data is…
Jay
  • 9,189
  • 12
  • 56
  • 96
4
votes
1 answer

PrimeNg Turbo Table p-table lazy load scroll event

I am implementing primeNG turbo table. I am able to implement it but while implementing lazy loading. iam not been able to get scroll event. How to get scroll event in my method. Below is what i have tried.
4
votes
4 answers

primeng turbotable column auto-sizing with scrolling

I am using turbo table and want the following: Have all columns auto-size based on content. Have the table itself fill the screen horizontally eg not manually specify the width Have the table horizontally scroll when the auto-sized columns require…
Noa
  • 337
  • 2
  • 4
  • 11
4
votes
1 answer

PrimeNG TurboTable: Does dataKey need to be a column?

Does the dataKey property on p-table need to be defined as a column or does it simply need to be a property of the objects in the [value] array? If it needs to be a column, does this column need to be visible?
Dante Orlando
  • 55
  • 1
  • 1
  • 6
4
votes
2 answers

TurboTable customSort a single column

Is there a way to apply a customSort to only one column with TurboTables and allow the other columns to use the default sorting? The documentation applies the customSort to the entire table. https://www.primefaces.org/primeng/#/table/sort
Kevin
  • 51
  • 1
  • 5
4
votes
4 answers

How to disable the option to deselect a row on TurboTable component?

So I have a table with data that gets populated throughout the use of the application. When a user clicks on a row, the row is highlighted and that row's data is populated beneath the table. I just want to disable the option of the user to deselect…
Boris
  • 475
  • 5
  • 12
3
votes
1 answer

Date filter with template not applying filtering (PrimeNG Table)

I'm developing a SPA with PrimeNG's table to display records, and each column has a filter for its data. One of them is a date record, which comes as ISO string and is converted to a Date object before being fed to the table itself. I need the date…
3
votes
0 answers

PrimeNG Table: Edit mode not working correctly - Edit Fields are empty

When i click into a cell the edit mode starts but the text box is empty. Code:
3
votes
3 answers

Primeng table p-table,set conditional column editable

I am using Primeng p-table control in my angular 7 application. Below is the html code I am using:
Suresh Negi
  • 372
  • 2
  • 6
  • 19
3
votes
1 answer

PrimeNG p-table header select all persistence with lazy loading and pagination

Current config (cannot update it to latest): "@angular/cli": "^7.3.9", "primeng": "7.0.5", I have a PrimeNG p-table that has lazy loaded data with pagination. There is an issue open for it on PrimeNG GitHub too -…
Kunal Dethe
  • 1,254
  • 1
  • 18
  • 38
3
votes
3 answers

Primeng Editable Rows - NullInjectorError: No provider for EditableRow

I have a working primeng table that I wanted to make the rows editable for and followed their documentation to do so. But it throws me the following error when it tries to load NullInjectorError: No provider for EditableRow My p-table definition has…
canpan14
  • 1,181
  • 1
  • 14
  • 36
3
votes
1 answer

PrimeNG TurboTable sort icon not visible with default sorting enabled

When default sorting is enabled on PrimeNG's TurboTable sort icon is not visible with initial load, column header is styled as it's used and data is sorted properly. Sort icon appears when i manually click on header to sort again. html:
dnk
  • 109
  • 1
  • 8
3
votes
2 answers

PrimeNG TurboTable with custom width does not work properly

I am trying to use a PrimeNG turbotable with custom size (500px) and I expected the columns width to be set automatically however it does not work. I get a horizontal scrollbar and the total width seems to be fixed at 767 pixels. If I try to set the…
Haritos30
  • 200
  • 2
  • 9
3
votes
1 answer

PrimeNG Table column sorting doesn't work

I have created an Angular application using PrimeNG Table. I've checked the PrimeNG Documentation here (https://www.primefaces.org/primeng/#/table/sort). The problem is that my table is not sorting. The sorting icons are showing up, and when I press…
Adrian
  • 121
  • 2
  • 12
1
2
3
12 13