Save Grid settings to display them later
I'm working on a project which ask me to create a custom Grid (with grouping, hide/show column... functionalities) but it also ask me to save the settings of your custom grid to get it back later on. Then I was wondering if there is a way to *get the settings of an Awesome Grid* so you can *save it in a data base* and also *apply them on an other Grid* ?
asked 20 days ago
I think you need grid columns state, and you can get it by calling $('#Grid1').data('o').columns and you can set/modify them, and after call load, example: $('#Grid1').data('o').columns.W = 200; $('#Grid1').data('api').load(); you can also set `.Load(false)` on the grid and call `api.load` in js manually to load it so you can modify the settings before the initial load. grid settings are usually changed on `aweload` event and using ColumnsSelector mod (that show/hides columns) also on `awerender` you should also consider that grid settings in the markup might change over time, perhaps new columns added or removed, you might need to do some checks before loading the settings
answered 20 days ago
to leave an answer