Forum


21:31

13/06/2009

...or
...if you meant how to select a row with code as opposed to actually clicking on it then ...from the demos - http://trirand.com/jqgrid/jqgrid.html - Advanced - Multi-Select ....
Select (unselect) Row 13
jQuery("#list9").setSelection("13");
Romyn
09:50

13/06/2009

Hi,
…then just do it when you need to. I've just tried it, as I needed to the same, and it worked fine. I have a number of grids that initialise and load when the page is loaded and in addition to that I select a default row within one of those grids (grid_r)…. so I do (my function names)
initialiseGrids();
loadGridData();
$(”#grid_r”).setSelection(curr_ID);
where curr_ID is my default row number.
That then selects the row for me and executes the OnRowSelect function which does whatever it does etc.
As long as the grid is there you can do it whenever you want within your code.
Hope that helps
Regards
Romyn
Most Users Ever Online: 715
Currently Online:
30 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