Wijmo Flexgrid - columns width and scroll bars without fixed numbers

Posted by: webworx on 16 October 2018, 2:56 am EST

    • Post Options:
    • Link

    Posted 16 October 2018, 2:56 am EST

    Hi,

    i need help and found already a related ticket for it here in the forum.

    See https://www.grapecity.com/en/forums/wijmo/wijmo-flexgrid---columns-w_1.

    But the accepted answer in not enough for my case.

    We have a wijmo tree grid with one column and we would to see the scrollbars if the content of a cell is longer than the grid. Bacause we dont know how long the text might be, we cant set a fixed number for the width of the grid column. And if we set “*”, we see the three dots (ellipsized).

    Any idea what i can do?

    Best regards,

    Asmir

  • Posted 16 October 2018, 3:39 pm EST

    Hi Asmir,

    You may call autoSizeColumns() method of the grid to auto size the column to fit its content.

    grid.autoSizeColumns();
    

    You may also refer to the following sample: https://stackblitz.com/edit/angular-cb6w1o?file=app%2Fapp.component.ts

    ~Sharad

Need extra support?

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

Learn More

Forum Channels