I'm using the following to export my current grid state:
$(“#tableall”).jqGrid('jqGridExport',{exptype:”jsonstring”});
If I print this to an alert or innerhtml div I see my current grid configuration listed in JSON form.
If I attempt to import this by doing the following ( these actions are tied to a button on my page ) :
test_json = $(“#tableall”).jqGrid('jqGridExport',{exptype:”jsonstring”});
$(“#tableall”).jqGrid('GridUnload');
$(“#tableall”).jqGrid('jqGridImport',{imptype:”jsonstring”, impstring: test_json, jsonGrid:{ config:”grid”,data: “data”} });
I get a “ReferenceError: Can't find variable: grid” error in the javascript debugging console. I'm thinking the error is saying it can't find “grid”,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top