These are great methods – which seems to store all the options of the grid even thought the some of the parameters of the grid are not defined. For example: if beforeProcessing was not defined in the grid – it is stored when save state as null. when loadState is called – it is giving an error “Cannot read property ‘beforeProcessing’ of undefined”
Not sure if this is a bug, but would be helpful to only store what is defined.
Thank you for the recommendation. Unfortunately at the moment we can’t store only the defined parameters for the grid, since they are extended when the grid is created and we do not know which are defined. (maybe it can be done when we made interception from the default and new one, but this need testing)
We can not reproduce this problem. Can you please post a simple test case which demonstrates the problem?
In loadState method there is a event called beforeSetGrid. To this event are passed the saved grid parameters. The event should return the new (modified) parameters, which exactly what you do with your custom function.