Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jqGridImport & jqGridExport working synergy #1061

Open
HASTJI opened this issue May 2, 2024 · 0 comments
Open

jqGridImport & jqGridExport working synergy #1061

HASTJI opened this issue May 2, 2024 · 0 comments

Comments

@HASTJI
Copy link

HASTJI commented May 2, 2024

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant