Save Datatable State in webix jet

Hi, I have this code, https://snippet.webix.com/5o1hzjpi
I’m trying to save the state of my datatable but I got a null from my state, how can I fix this? Thanks.

Hello @Hellekin,

I’m trying to save the state of my datatable but I got a null from my state, how can I fix this? Thanks.

The unload event is a global Webix event, which refers to the general onunload event of the global Window object, hence why you are not getting the state and are returning null. Even if you were to call the event correctly, its use would be pretty limited, since all of the page’s content will be unloaded by this point and will become inaccessible. Otherwise, your code should work just fine, judging from my limited testing: https://snippet.webix.com/70w9faqr.