You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. is there any valid method to save current colums visability for current user in JqGrid? I mean when it was version 4.6 - I made it with : $("#gridframe").jqGrid('jqGridImport',{imptype:"jsonstring", impstring:window.localStorage.getItem("%userid%-gridframe")});
in the beggining, before JqGrid is builded and then created button, which saves all prefs of current grid in local storage: window.localStorage.setItem("%userid%-gridframe",$("#gridframe").jqGrid('jqGridExport',{exptype:'jsonstring'}));
But with the latest version it said that jqGridImport is not a function and when I changed it to: $.jgrid.jqGridImport( "gridframe", {imptype:"jsonstring", impstring : window.localStorage.getItem("%userid%-gridframe")});
It started saying that json array is not valid, but all was okay when it was old version.
What I'm doing wrong? I already tried to figure out about new syntax, but didn't get any correct results in my researches....
The text was updated successfully, but these errors were encountered:
Hello. is there any valid method to save current colums visability for current user in JqGrid? I mean when it was version 4.6 - I made it with :
$("#gridframe").jqGrid('jqGridImport',{imptype:"jsonstring", impstring:window.localStorage.getItem("%userid%-gridframe")});
in the beggining, before JqGrid is builded and then created button, which saves all prefs of current grid in local storage:
window.localStorage.setItem("%userid%-gridframe",$("#gridframe").jqGrid('jqGridExport',{exptype:'jsonstring'}));
But with the latest version it said that jqGridImport is not a function and when I changed it to:
$.jgrid.jqGridImport( "gridframe", {imptype:"jsonstring", impstring : window.localStorage.getItem("%userid%-gridframe")});
It started saying that json array is not valid, but all was okay when it was old version.
What I'm doing wrong? I already tried to figure out about new syntax, but didn't get any correct results in my researches....
The text was updated successfully, but these errors were encountered: