Forum
23:15
11/12/2009
Greetings:
It appears there's no way to get the original row data (element from the response) for any row id.
As an example, the afterInsertRow() method provides 'rowelem' from the response, but currently it's not possible to get 'rowelem' for say the first and the last row inside afterInsertRow().
Would it be possible to add such a function?
12:00
Moderators
30/10/2007
Hello,
You can use the loadComplete to which we pass the request. If your request is JSON you can get the first and the last original row.
Best Regards
Tony
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:29
Moderators
30/10/2007
Hello,
You can use a datatype as function and here you can do what you want
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:30
Moderators
30/10/2007
Hello,
Sorry, for this - it seems like this is the same as when we use loadComplete.
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.
15:07
Moderators
30/10/2007
Hello,
Now I see what you mean exactley - if I understand rigth. The problem is that in loadComplete you do not have acces to the data, while with custom data type before using addJSONData you have access to all rows before inserted into the grid.
Glad that datatype function helps.
Best Regards
Tony
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.
23:23
11/12/2009
tony said:
Hello,
Now I see what you mean exactley - if I understand rigth. The problem is that in loadComplete you do not have acces to the data, while with custom data type before using addJSONData you have access to all rows before inserted into the grid.
Glad that datatype function helps.
Best Regards
Tony
Yes, datatype as function works for me, but I don't see the 'Loading..' message. What can I do to have this message displayed?
Thx,
Les
10:29
Moderators
30/10/2007
Hello,
in the same function when the request begin do
$("#load_"+gridid).show();
and when end
$("#load_"+gridid).hide();
Where the gridid is the id of the grid
Regards
Tony
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:
46 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