When a user changes the order of columns in a grid, I was able to capture the new column order, serialize it, and store it.
I just can't figure out how to bring that data back and re-apply it to the grid when the page reloads.
I used the "columReorder" event to post a service call to store the results.
columnReorder: function (e) {
var that = this;
setTimeout(function () {
SaveColsGrid1(kendo.stringify(that.columns));
}, 5);
},
I've tried a couple ways to bring in columns.
I tried binding to kindo grid "columns" property, but an external web service call doesn't come back in time before the grid renders.
Am I going about this correctly or is there a better way to take a serialized list of columns (that i've saved) and set the order when the grid loads?
Thanks,
Ben
I just can't figure out how to bring that data back and re-apply it to the grid when the page reloads.
I used the "columReorder" event to post a service call to store the results.
columnReorder: function (e) {
var that = this;
setTimeout(function () {
SaveColsGrid1(kendo.stringify(that.columns));
}, 5);
},
I've tried a couple ways to bring in columns.
I tried binding to kindo grid "columns" property, but an external web service call doesn't come back in time before the grid renders.
Am I going about this correctly or is there a better way to take a serialized list of columns (that i've saved) and set the order when the grid loads?
Thanks,
Ben