Forum
11:17
09/12/2013
i am trying import grid params. Before this,i exporting grid paramtrs:
exp=grid.jqGridExport({exptype:"jsonstring"});
and Import
grid.jqGrid('jqGridImport',{imptype:"jsonstring", impstring:exp,importComplete: function() {grid.trigger('reloadGrid');console.log('something');}});
but nothing,even:
grid.jqGrid('GridUnload').jqGrid('jqGridImport',{imptype:"jsonstring", impstring:exp,importComplete: function() {grid.trigger('reloadGrid');console.log('something');}});
not work;
version:
jqGrid 4.5.4 - jQuery Grid
jquery: 1.7.2
what i am doing wrong???
11:57
Moderators
30/10/2007
Hello,
Can you please zip your final jsonstring ( which does not work) and send it to me to test it.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:33
Moderators
30/10/2007
Hello,
1. The file is not in UTF-8 encoded - not sure if this is the problem, but when I opened in the exported json string there was a syntax error in onselectCell function. Please check this.
Try not to use them in the export string and see if this is the problem.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
14:39
09/12/2013
Hi! This is my example http://sergeybri.zz.mu/index.html/ On "plus" button export grid in variable (see in console), On "edit" button export. Nothing.
Delete onCellSelected and others not needed properties and functions
18:32
Moderators
30/10/2007
Hello,
The problem you have is that you try to create the new grid on existing grid.
That is: the grid can not be recreated again if it is created.
Possible solution (tested):
Use GridDestroy to remove the old grid or just remove the old grid.
Create new table element and apply the gridImport to it.
Enjoy
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
11:12
Moderators
30/10/2007
Hello,
Navigator options including filters are not part of the grid. You will neeed to create your own jsonstring. See the code for exportGrid (it uses a very simple code) or use importComplete to build the navigator when you impoprt the grid.
Refer to the documentation.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
66 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66