Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Master/Detail grid: reload Detail grid upon page load
04/11/2008
05:00
Avatar
victorz
Member
Members
Forum Posts: 8
Member Since:
12/05/2008
sp_UserOfflineSmall Offline

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

04/11/2008
11:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

06/11/2008
04:57
Avatar
victorz
Member
Members
Forum Posts: 8
Member Since:
12/05/2008
sp_UserOfflineSmall Offline

Tony, thanks a lot!

After I've used setTimeout() to delay a trigger firing, it worked

all right.

By the way, what exactly is the difference between gridComplete()

and loadComplete() events? ( I did read the doc, but unfortunately

didn't get a clue what loadComplete() is about).

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information