[Data Grid Reactive] How to reset the layout of the grid?
Forge component by Platform Maintenace


There is currently the option to apply saved grid layouts to the grid. Is there a way to reset the grid layout?
I tried by calling SetViewLayout with an empty Config parameter. But that does not work.

Alfio Esposito


Hello @Alfio Esposito ,

The Grid layout is the definition that the wijmo Flexgrid understands to display the columns in that desired way, so sending empty won't do the trick.

My suggestion is to store the JSON generated (using the GetViewLayout) when you have the grid in the status to where you want to reset it (you can use the Grid event OnInitialize) and then use that JSON when you want to "Reset" the layout (using SetViewLayout).

I'm not totally sure that this can work for your use case, so let us know if this helps,


Bruno Martinho 

Thank you for your quick response and for the suggestion Bruno. This works for our use case.


Hi Bruno,

If you could provide an example implementation would be very helpful for me as i'm stuck with using "SetViewLayout" for grid reset. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.