Posted 24 October 2017, 3:04 am EST
We have a flex-grid defined using custom templates and data mapping to angularJS methods. We are planning to persist the order of the columns / size of the columns when user drags and display in the same order when user visits the grid next time.
Tried your’s below solutions :
https://www.grapecity.com/en/forums/wijmo/persist-flexgrid-state
http://demos.wijmo.com/5/Angular/Explorer/Explorer/#/grid/columnLayout
function saveColumnLayout(s) { if (localStorage) { localStorage['columns'] = s.columnLayout; console.log('**LAYOUT: ' + s.columnLayout); } } function loadColumnLayout(s) { if (localStorage['columns']) { s.columnLayout = localStorage['columns']; } }
called these functions :
dragged-column=" saveColumnLayout (s,e)"
loaded-rows=" loadColumnLayout (s,e)"
But I see when the grid retrieved from the localStorage. I see the images / values of columns which has custom templates are go missing.