Wijmo FlexGrid: Save and restore state problem with Column Button and Merge Hea

Posted by: nguyenvietloc on 7 August 2019, 9:53 am EST

    • Post Options:
    • Link

    Posted 7 August 2019, 9:53 am EST - Updated 3 October 2022, 7:44 pm EST

    Hi,

    I’m using wijmo flexgrid and AngularJs

    to implement save and restore state function.

    I have a problem with column button and merge header.

    I have created a sample of my problem.

    Please see the link below.

    http://jsfiddle.net/L_Nguyen/u31jgtcn/15/

    Click button Save State, then click button Restore State.

    The Problem is:

    1. Column button can not restore the state.
    2. Merge header can not restore.

      (See attack image SAVE_RESTORE_PROBLEM.png)

    How to fix this problem?

    Please help me!

    Thank you.

  • Posted 8 August 2019, 1:14 am EST

    Hi Nguyen,

    The reason that you are not getting the buttons after restoring the column layout is that the columnLayout property does not retain information about cell templates. When we restore the columnLayout, the grid resets its original column layout. Therefore, all the cell and column templates are also reset.

    The workaround is that you can use the columnLayout property to generate dynamic columns. Please refer to the sample attached.

    Regards,

    Ashwin

    FlexGrid_dynamicColumn_celltemplate_columnLayout.zip

  • Posted 8 August 2019, 10:43 am EST

    Thank you for your answer.

Need extra support?

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

Learn More

Forum Channels