Hi,
I?m trying to use saveState to save everything in colModel along with the following additional properties and load them from localStorage on grid initialization:
numberCell.show
rowBorders
columnBorders
stripeRows
pageModel.type
sortModel.type
filterModel.type
For this purpose, I configured stateKeys as follows:
stateKeys: {
numberCell: ['show'],
rowBorders: 1,
columnBorders: 1,
stripeRows: 1,
groupModel: ['on', 'header'],
pageModel: ['type', 'rPP'],
sortModel: ['type', 'sorter'],
filterModel: ['type', 'header', 'menuIcon']
}
However, I couldn?t get these properties (like numberCell, pageModel.type, filterModel.type) to save with saveState or load correctly with loadState.
Am I missing something? How can I ensure these properties are properly saved and loaded?
Thanks in advance!
Jsfiddle:
https://jsfiddle.net/pn92z1bt/3/