Questions tagged [p-table]
52 questions
0
votes
0 answers
P-table of Lazy load when we sort it always goes offset page 1, when i was on page 3 or 4
When iam any other page 2 or 3, if i click on Sort of lazy , its shows data of 2 or 3 only but why always the page shows first page offset 0.
In lazy mode it always show ,which ever page i was there , should not navigate to offset page 1

Ravikumar
- 1
- 1
0
votes
0 answers
Sticky Header Not Working in Primeng p-table where autoLayout property is set to true
I have a dynamic p-table with columns that auto-adjust their sizes. I also want the table header to stick in place when scrolling a page. In my current attempt, setting the autoLayout property to true and making table header sticky don't work…

sahi
- 1
- 1
0
votes
0 answers
p-table with [pSortableColumn] on PrimeNG's p-table with javascript function call to compute the value for the column
Can I use pSortableColumn with an internal function call to compute my column values dynamically without using a form variable? I want something like. This doesn't throw any error but my column doesn't sort on my PrimeNG's p-table.
Display Icon in

SJoe
- 319
- 2
- 6
- 14
0
votes
0 answers
Programmatically updating value of a property of PrimeNg component
I am making use of p-tableHeaderCheckboxavailable in p-table PrimeNG component.
https://www.primefaces.org/primeng-v7-lts/#/table
As per the example over there:-
…

Shad
- 1,185
- 1
- 12
- 27
0
votes
0 answers
How to add a new row to p-table when the table is empty?
I have a datatable with mock data and multiple rows and an add button in the end to add a new row.
The problem is when there is no data in the table, I mean no rows, the add button doesn't add the initial row?
I took this as a reference: here
My…

lklklklkle
- 1
- 2
0
votes
0 answers
Some filters doesn't working in PrimeNg table (Angular)
i'm trying to make a single filter with p-tables. However, some columns doesn't work for filtering (specifically those related to bills data). I'm tried to add a ng-container more to do something like a "let-client.bills" but doesn't work either and…

Ivan014
- 1
- 2
0
votes
0 answers
How to customize the p-columnfilter columns on the basis of the other column filter value if any
I am facing an issue, while implementing primeng p-table.
I need to filter the table on the basis of two or more column filters value.
In my model, country code and language code present in the respective country like:
"country_code": [
…

Vinay Gupta
- 19
- 6
0
votes
1 answer
primeng v11.2.0: p-columnFilter not showing
Dear all I am using the p-table component from primeNG library:
the main filter (highlighted input box) is working but when I click on the funnel next to the 'Sample' nothing happens and no error is showing in the console.
I am expecting something…

Dino
- 1,307
- 2
- 16
- 47
0
votes
1 answer
Make first column of p-table a different colour to the rest
Does anyone know how to make the first column of a p-table a different colour to the rest?
And then the other columns alternating colours?
I can only seem to find a way of doing this with rows? Currently the style class is just this…

Pippa97
- 79
- 1
- 12
0
votes
1 answer
Display Icon in component in angular (primeng-table)
I have a functionality to implement in which I am getting data from an API and I am using that to display it in a , now my requirement is to display a tick value in one of the columns for which the corresponding row holds a Boolean value for ex. a…

Shubham Tiwari
- 959
- 1
- 11
- 32
0
votes
1 answer
Filling a PrimeNG table with an array
I'm new to Angular and PrimeNG and currently I'm stuck trying to fill a table. There are not errors in the console so probably I'm just missing stuff, but I can't figure out what. Here is the code:
In the component.ts
...
columns: Column[] =…

bass
- 5
- 4
0
votes
1 answer
how to change p-table background color when theme changes to dark theme in ngx-admin angular
I am using ngx-admin template and for my table. I don't use ng2-smart-table.
I tried to change whole page to dark theme. full page changed to dark mode except table. The table is still white color.
How can i change The table color to dark theme…

hanushi
- 119
- 6
- 14
0
votes
1 answer
Primeng p-table - Show data instead of id
Is there a way in p-table to show the value instead of Id?
Eg: I get the data from server as below
[
{row_id: 1, customer_id: 25, status: 'NEW'},
{row_id: 1, customer_id: 26, status: 'NEW'},
]
I want to replace the customer id with customer…

Vinod Nadar
- 61
- 8
0
votes
2 answers
Highlight selected row in primeng table without checking the checbox
I am using primeng p-table along with p-checkbox. I want to be able to highlight the clicked row (or the row content) without checking the checkbox. The Checkbox should be checked on clicking the checkbox itself, not the row.
I tried using…

Rajat
- 617
- 3
- 9
- 16
0
votes
1 answer
PrimeNG p-table - Cannot push item (row) into 'selection''
I am using Angular 9, PrimeNG p-table component.
So, what is a problem.
I have 5 rows and for each row I have checkbox. When I select some row or rows,…

99Coder
- 47
- 1
- 7