Get Free Trial

How to set fixed column width

Paul Schlichter asked on October 22, 2016

Is it possible to set the width of a specific column that will remain fixed even when contents will not fit?
Sometimes I would like the frozen left columns to remain at a fixed width. I have tried flexmonster.setColumnWidth(2, 150); but that doesn’t seem to work.


3 answers

Dmytro Zvazhii Dmytro Zvazhii Flexmonster October 24, 2016

Hello Paul,

Thank you for reporting this issue.
Our technical team will identify the problem. For now, you can use the next solution. Fixed column width can be set from the UI.
Please, drag the column with the mouse to the size you want and then save the report.
The configuration will be saved and it means that the next time you are loading the report you will see the column with the size you have set previously.
Please let us know if it works for you.

Best regards,

Paul Schlichter October 24, 2016

Thanks Dmytro,

I have hidden the toolbar open and save. So I set the view column widths in the xml config file.
Works fairly well. However if the field contents exceed the defined width the column expands.
I would like the column to remain fixed so that the overflow is either truncated or the cell row height is increased to allow the overflow into another line


Iryna Kulchytska Iryna Kulchytska Flexmonster October 25, 2016

Hi Paul,

Thank you for the details.
There is a known issue with a narrow column when it becomes wider when a user scrolls a pivot table and it expands to the width of the longest first word of the labels in this column.
Could you please provide us with a screenshot or a sample to identify if you are facing the same issue as a known one?

Thank you,

Please login or Register to Submit Answer