Saving FlexGrid layout when using columnGroups

Posted by: paulr on 8 February 2021, 12:04 pm EST

  • Posted 8 February 2021, 12:04 pm EST - Updated 3 October 2022, 2:32 pm EST

    Hi guys,

    I am using columnGroups to display the table kind of like this:

    I am trying to use columnLayout to be able to save and restore the column state but whenever I restore/apply the columnLayout, the column groups are lost as if they weren’t set.

    How can I support layout saving/restoring when using columnGroups?

    Thanks

  • Posted 9 February 2021, 7:50 am EST

    Hi Paul,

    This is a design limitation.

    The columnLayout property only handles regular columns. The columnGroups property creates extra “logical” columns that are not taken into account by the columnLayout property.

    We may add support for this future release but we will not be able to provide any ETA on this.

    Regards,

    Ashwin

  • Posted 11 February 2021, 4:00 am EST

    You can create a column layout with group columns manually by iterating over each column group:

    https://codesandbox.io/s/vigorous-williams-7gbm9

    In this sample, a layout.js file is added which contains a function that adds a property to the grid know as columnGroupLayout which returns the layout of groups.

Need extra support?

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

Learn More

Forum Channels