Dynamic GridLayout

Is it possible to have a dynamic gridlayout where the gridColums can be changed when data is loaded?

I have tried $$(“myGrid”).config.gridColumns = 10 but there is no $$(“myGrid”.refresh() method to redraw the component, so it never updates.

Any ideas?

Hello,
The method .refresh() will not work. Layout, form, accordion, etc cannot be redefined this way.
Use method .resize() to dynamic redraw components inside layout.
And define a config:
https://snippet.webix.com/45mwpi9o

Perfect, thanks @annazankevich