Forum


Hi!
I am trying to trigger "gridReload" on a Detail grid, not only with
onRowSelect() event, but also upon the web page load. The idea is
to display the details of the Master grid LAST row in the Detail sub-grid
as a default choice.
The code I've tried looks like following:
( in the Master grid definition )
....
gridComplete: function() {
lastRowID = jQuery("#master_grid").getDataIDs()[0];
jQuery("#details_grid").setGridParam(
{
url: "/autoqaweb/report_categories.t?q=1&id="+lastRowID,
page:1
} ).trigger("reloadGrid");
...
Unfortunately no trigger action seems to be fired off.
Any idea how I can do the stuff?
Thanks
11:13

Moderators
30/10/2007

Hello,
There will be no trigger here. Lets consider the example.
You first call the master and then detail. Whitin master loadind which is first
you try to select a item in detail. It is unknown if the detail is loaded during
the load complete in master. Try to use setTimeout in loadComplete when you load the page for first time.
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:
77 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