Questions tagged [p-table]
52 questions
0
votes
0 answers
Sticky header in primeng 10.0.3 table not working on Angular 10.1.5
I am trying to let the header of a primeng table FIXED (sticky at the top) when I scroll it. I followed exactly the tutorial at the primeng docs site.
https://primefaces.org/primeng/showcase/#/table/sticky.
My CSS file is exactly the same as…

Turtles
- 234
- 3
- 13
0
votes
1 answer
Power to 2 and 3 from inside TS file for p-table
I have a p-table called cols:
TS file:
public cols: any[];
public ngOnInit(): void {
this.cols = [
{ field: 'length', header: 'Length (m)' },
{ field: 'width', header: 'Width (m)' },
{ field: 'height', header: 'Height…

Alpha Bravo Charlie ...
- 800
- 2
- 13
- 31
0
votes
1 answer
how to tell p-table to sort certain columns using a subfield
i have data like so with nested json
users = [
{ name: "ABC",
age: 11,
activity : { date: 11-Aug-2020,
title: "some activity",
loc: "some loc" }
phone: "1111"
}
col definition is like…

John
- 33
- 1
- 7
0
votes
1 answer
PrimeNg Multi Sort with MetaKey default sort (e.g. first two columns)
I have a table with sortMode="multiple". I would like to specify two columns as the default sort when the page is first displayed. If I set sortMode="single" it works by specifying the sortField="year" [sortOrder]="-1" options (e.g. the…

Alex
- 285
- 4
- 11
0
votes
1 answer
Add button in column of a p-table
i'm trying to add buttons in certain columns of my p-table,
actually i'm doing that in my html :
…

Dallincha
- 21
- 3
0
votes
1 answer
p-dropdown in p-table dynamic rows PrimeNG - version 9 - Stackblitz added
My requirement is to have dropdowns in each row of two columns of grid as below:
Here is stackblitz for my problem: https://stackblitz.com/edit/angular9-primeng9
User can select values for each row and save. I am able to fetch data from data source…

guravman
- 151
- 4
- 14