How to force flex grid to layout

Posted by: kdawg1406 on 14 September 2017, 11:32 am EST

    • Post Options:
    • Link

    Posted 14 September 2017, 11:32 am EST

    I have a form with a flex grid that all columns use * sizing. The flex grid is responsive to width size changes, works great.

    However, I have a problem. The form has a sidebar that can be expanded or contracted.

    The problem is, when the side bar is expanded or contracted, the flex grid does not automatically adjust its layout.

    What command or method can I invoke to force the flex grid to perform a layout pass?

    NOTE: PLEASE READ ME. I DO NOT want to use autosize to fit content. Please don’t suggest to use this method. This layout is required to fit to the space.

    Thank you,

    Karl

  • Posted 14 September 2017, 11:32 am EST

    Found it. The refresh method will do this.

    Is this the recommended way?

    Thanks,

    Karl

  • Posted 14 September 2017, 11:32 am EST

    Hello Karl

    This is a right way, and from performance point of view it’s even better to use the asynchronous invalidate method instead the synchronous “refresh”. You may also refresh all Wijmo controls located under some specific element in the DOM tree by using the static Control.invalidateAll method.

    Thanks,

    Alex

  • Posted 13 October 2017, 8:57 am EST

    It’s not very clear, is it possible to show an example?

Need extra support?

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

Learn More

Forum Channels