I have a few problems with saving grid’s size, order and sorting.
...
grid.enableAutoWidth(true);
...
grid.init();
grid.loadOrderFromCookie(name);
grid.loadSizeFromCookie(name);
grid.loadSortingFromCookie(name);
grid.enableColumnMove(true);
grid.enableAutoSaving(name, expireDate);
grid.enableAutoSizeSaving(name, expireDate);
grid.enableOrderSaving(name, expireDate);
grid.enableSortingSaving(name, expireDate);
loadGridContent(grid); // load through dwr
Problem 1: Column sizes and sorting is stored and restored fine, but as soon as I move a column I’m getting “Object 1 has no method ‘split’” alert in Chrome and “val.split is not a function” in FF4
Problem 2: I’m not clear how grid columns are supposed to be sized on first page load (when cookie does not exist yet). Even though I have a few columns with specific (initial) width set for all and an asterisk (*) for the last one (that is basicaly an empty column so the grid takes the whole width of the window), when this page loads all columns are sized equally.
In my code I set column widths to: 30,300,60,200,60,90,90,80,80,60,125,125,80,*
After resizing the first column cookie has this: 24,111,111,111,111,111,111,111,111,111,111,111,111,111|7,7,7,7,7,7,7,7,7,7,7,7,7,7|||
After moving one column cookie has this: 24,62,111,111,111,111,111,111,111,111,111,111,111,111|7,7,7,7,7,7,7,7,7,7,7,7,7,7||0,2,1,3,4,5,6,7,8,9,10,11,12,13|