Flexgrid not render if clientwidth = 0

Posted by: 1728884346 on 23 October 2018, 3:00 am EST

    • Post Options:
    • Link

    Posted 23 October 2018, 3:00 am EST - Updated 29 September 2022, 1:55 am EST

    Hi, i encounter one problem as below

    if a flexgrid inside a div, and set div style = ‘display:none;’, means default not show flexgrid, and one action will remove this style to display flexgrid.

    but seem like flexgrid won’t render successfully if clientwidth = 0

    please advise how to fix this.

  • Posted 23 October 2018, 6:01 pm EST

    Hi,

    Please call FlexGrid invalidate method methi whenever FlexGrid visibility change from none to block or else.

    ~Manish

  • Posted 23 October 2018, 10:15 pm EST

    thanks Manish, just want to check, is it ok call refresh() instead of validate() ? any difference ?

  • Posted 24 October 2018, 7:29 pm EST

    Hi,

    Here is the difference between the refresh and invalidate.

    The difference between “Control.invalidate()” and “Control.refresh()” is this:

    Control.invalidate: Asynchronous, debounced.

    Control.refresh: Synchronous.

    If you call “invalidate” 1000 times in quick succession, the control will queue the requests and will refresh only once (after a small delay).

    If you call “refresh” 1000 times in quick succession, the control will repaint 1000 times.

    <<<<<<<<<<<<<<

    Hence, if you are sure that there will be no successive call for refresh method, you may use the refresh method.

    However, we would suggest you to use invalidate method instead of refresh.

    Hope it clear!

    ~Manish

  • Posted 25 October 2018, 3:49 am EST

    thank you very much, very clear. will share with team.

Need extra support?

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

Learn More

Forum Channels