SetColumnHidden and loadOrderFromCookie

Hi! Support,

We have a table with first 3 columns hidden
mygrid.setColumnHidden(0,true);
mygrid.setColumnHidden(1,true);
mygrid.setColumnHidden(2,true);

And we also have the option of allowing the user to move the column, sort the order and save them using cookie.

mygrid.loadOrderFromCookie();
mygrid.loadSortingFromCookie();
mygrid.loadSizeFromCookie();
mygrid.enableAutoSizeSaving();
mygrid.enableSortingSaving();
mygrid.enableOrderSaving();

Everything works fine (the first 3 cols are hidden initally, then one can show them, move columns, sort) but when the user refreshes/reloads the page the column that was moved, sorted, remains as it is but the first 3 columns gets hidden again. I am assuming that setColumnHidden takes precedence so when the page loads the setColumnHidden hides them.

I hope I am making sense. Is there anyway, we can still hide them even after the page loads?

It is rather urgent.

Thanks

CODE

[code]

[/code]


Any body with any solution…thanks

Please, try to load order of the columns after the sorting, size loading:

mygrid.loadSortingFromCookie(); mygrid.loadSizeFromCookie(); mygrid.loadOrderFromCookie();