Flexgrid without vertical Scrollbar

Posted by: tie_entwicklung on 3 October 2018, 12:27 am EST

    • Post Options:
    • Link

    Posted 3 October 2018, 12:27 am EST - Updated 3 October 2022, 11:21 am EST

    Hello

    Is there a setting to distribute column sizes in a way that guarantees there is no vertical scrollbar?

    I have a table with 10 columns and wordwrap enabled, but the way the column widths are distributed seems arbitrary. For my usecase all columns combined should only use the window width and still be resizable, so maxWidth is not an option.

    Help is much appreciated.

  • Posted 3 October 2018, 3:49 pm EST

    FlexGrid columns allow star-sizing for width so you may set the width of all columns to ‘*’ so that they automatically fill all the available space in the grid.

    Please refer to the following sample: https://stackblitz.com/edit/angular-p7v9tp?file=app%2Fapp.component.html

    ~Sharad

  • Posted 3 October 2018, 6:44 pm EST

    Star sizing didn’t work because somewhere in our code a minWidth was set for all columns. Now it works perfectly. Sorry and thank you!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels