Hi Raul,
Greetings from Syncfusion support.
From your query we could see that your requirement is to get the grid settings so that you can store and restore them later. You can use the Grid’s getPersistData method to get the current grid settings to achieve your requirement. This will return the settings as displayed in the below image,
Then you can restore the entire saved settings or the required settings to the Grid using its setProperties method as demonstrated in the below code snippet,
var grid = document.getElementById('grid').ej2_instances[0]
var persistData = JSON.parse(grid.getPersistData())
// Restores the filter and sort settings to the Grid
grid.setProperties({ filterSettings: persistData.filterSettings, sortSettings: persistData.sortSettings })
// Restores the entire settings to the Grid
grid.setProperties(persistData) |
Please get back to us if you require any further assistance.
Regards,
Sujith R