Forum
21:45
08/02/2010
16:02
Moderators
30/10/2007
Hello,
You will need to use onPaging event again with getGridParam to obtain the selected rows in multiselect mode.
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.
Hi Tony,
I am also trying to achieve the same effect of preserving row selection across pages. I tried following you above suggestion with something like:
onPaging: function () {
$("#grid").jqGrid("getGridParam", "selarrrow");
},
but the result of the above method call is always an empty array, regardless of many items are checked.
I looked through some of the other supported methods, but didn't see anything else that seemed helpful for this purpose.
Is there any chance that this could become part of the the base jqGrid? My guess is that for people using multi-select, it is more helpful to preserve selection across pages and also return items from all pages when the selected items are returned.
Thanks!
Keith
13:14
Moderators
30/10/2007
Hello,
This is true, since of the reference to the selected columns which after populating we become empty array.
To work this you should do something like this:
onPaging: function() {
var myselectedrows = $.extend([], $("#grid").jqGrid("getGridParam", "selarrrow"));
}
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.
19:31
Moderators
30/10/2007
Hello,
Sorry, it is a my fault. I do not have looked into the code.
It is true. This will not work. I have fixed this and you will have the change tomorrow in GitHub.
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.
21:18
Moderators
30/10/2007
Hello,
Please use the latest version from GitHub
Here is the fix:
http://github.com/tonytomov/jq.....9d760ac50c
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.
21:22
Moderators
30/10/2007
Hello,
When it is in github it means that it will be in the next release.
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.
I just downloaded 3.6.5 and it works great. In case anyone else runs into the same problem, if the method calls still appear to return [], and you are using a jsonReader to enable jqGrid to read your results, make sure the the "id" field points to a unique field. Otherwise jqGrid will be unable to retrieve information about which boxes are checked.
Best,
Keith
19:37
30/01/2011
Try as I might, I cannot get selections from different pages to persist. I can confirm the 'myselectedrows' array contains the correct values from the old page, but I do not know what needs to be done to reapply them on the new page. I was hoping the following events would enable me to get this working, but it did not work.
onPaging: function() { },
gridComplete: function() { },
What steps should I follow to get this working? Basically, I would like to be able to move back and forth on the grid pages, see previous selections and when a 'submit' button is clicked be able to pass all the values back to the server. Any help would be very much appreciated.
"Everything should be made as simple as possible, but not simpler" รขโฌโ Albert Einstein
14:00
18/07/2011
http://pastebin.com/1Yyf07xA has functions like _addIdsToSelectedCache and _removeIdsFromSelectedCache which are not available in source code, will you be able to help here ?
Can't it be included in Core JQGrid plugin ?
Most Users Ever Online: 715
Currently Online:
27 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