I'v been looking all over the place but can't find any solution. I want to store the grid settings (column order, filters, sorting,…) in a database as 'views'. So the user can click a button and the saved views are listed. If he selects one, the grid should change to the settings stored in that 'view'. I wrote the extension to the grid, and storing them using the export function works.
However importing the exported grid fails, as my data is lost.
I tried this simple piece of code below and i would expect the grid would remain the same, however i am left with a completly blank table tag.
var savedata=grid.jqGrid('jqGridExport',{exptype:”jsonstring”});
grid.jqGrid('GridUnload').jqGrid('jqGridImport',{imptype:”jsonstring”, impstring:savedata});
I'm using 4.1.2. My grid loads its data from a json script, so no local data. I would expect the gridimport
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top