I am looking to apply my saved grid column width(s) back to the grid.
I have been able to retrieve them successfully, but have not yet been able to restore them.
Would i apply these using a dataBound event? Haven't had any success. I would appreciate some guidance.
columnResize: function (e) {
var grid = this;
var state = {};
grid.columns.every(function(c, i) {
state[c.field] = c.width;
return true;
});
//Save to browser localStorage
localStorage.setItem('gridColumnWidth', JSON.stringify(state));
},
I have been able to retrieve them successfully, but have not yet been able to restore them.
Would i apply these using a dataBound event? Haven't had any success. I would appreciate some guidance.
columnResize: function (e) {
var grid = this;
var state = {};
grid.columns.every(function(c, i) {
state[c.field] = c.width;
return true;
});
//Save to browser localStorage
localStorage.setItem('gridColumnWidth', JSON.stringify(state));
},