asark
#1
Hi,
I am trying to save sorting preferences to the cookie but when I try to reload I get a blank grid.
I am using the enterprise version and have attached a sample that reproduces the problem.
Can you please provide a fix for this.
Cheers
dhx-sort-example.zip (11.4 KB)
Move code, that restores settings, to the data loading callback.
[code]mygrid.loadXML(“data.xml”, function(){
mygrid.loadOrderFromCookie(“test”); //then, restore the required data
mygrid.loadSizeFromCookie(“test”);
mygrid.loadSortingFromCookie(“test”);
mygrid.loadHiddenColumnsFromCookie(“test”);
mygrid.enableAutoSizeSaving(“test”); //enable saving cookies
mygrid.enableSortingSaving(“test”);
mygrid.enableOrderSaving(“test”);
mygrid.enableAutoHiddenColumnsSaving(“test”);
});[/code]
asark
#3
Thank you that did the trick