Primeng: p-table multiple frozenColumns is only freezing one

Created on 23 Nov 2018  路  8Comments  路  Source: primefaces/primeng

**I'm submitting a .

[ x  ] bug report 

Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-qftnbw

Current behavior
I'm creating a table with multiple frozen columns, the component is only freezing the first column setted in the array

Expected behavior
All the columns setted in the frozenColumns array should be fixed

Minimal reproduction of the problem with instructions
Im running the example just adding a new column in the frozen array, in the plunkr line 63 app.component.ts

Please tell us about your environment:
Windows 10, visual studio code

  • Angular version: 5.0

  • PrimeNG version: 6.1.7 (tested in 6.1.5 and 5.2.7)

  • Browser: [all ]

Most helpful comment

In your example you have 3 frozen columns set "vin, year, color". In the html you have the frozen width set to frozenWidth="400px". In the colgroup you have the width set to 200px for every column which equals 600px of space. If you set the col width to 133 or the frozen width to 600 all the frozen columns will appear.

All 8 comments

In your example you have 3 frozen columns set "vin, year, color". In the html you have the frozen width set to frozenWidth="400px". In the colgroup you have the width set to 200px for every column which equals 600px of space. If you set the col width to 133 or the frozen width to 600 all the frozen columns will appear.

@JacobSiegle That was the problem. Thanks a lot sr

Hello
I need to froze first and last column in the table.
any solutions?
Screen Shot 2019-04-09 at 18 20 18

I don't believe so, you would need to open a new issue as a feature request.

@JacobSiegle
Thanks for your quick reply.

Can i freeze first three column in primeng table angular

@sbvijay yes.

In your example you have 3 frozen columns set "vin, year, color". In the html you have the frozen width set to frozenWidth="400px". In the colgroup you have the width set to 200px for every column which equals 600px of space. If you set the col width to 133 or the frozen width to 600 all the frozen columns will appear.

WAOO!! that really works! thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markgoho picture markgoho  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

Helayxa picture Helayxa  路  3Comments

gatapia picture gatapia  路  3Comments

Helayxa picture Helayxa  路  3Comments