I need to call savestate as soon as I can:
state = $(“#jqxgrid”).jqxGrid(‘savestate’);
This is so I can capture the initial state to give the user an option to restore it later. If I do it too soon I don’t get any columns.
So at the moment I do it in a timer 500 ms after the bindingcomplete event has fired.
But I think I can do it earlier than this.
How can I use savestate at the earliest point please? Is there a better event to use?
I am asking this because after savestate there may be a new state being set that the user has previously saved and if I do it too late I get a flicker in the columns. So this is why timing is important.