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
Expanding subgrid row after parent grid reload
20/03/2010
20:25
Avatar
rodk
Member
Members
Forum Posts: 12
Member Since:
19/03/2010
sp_UserOfflineSmall Offline

In the definition of the top grid I have the following:

gridComplete: function() {
    if(dns_expand_id) {
        //alert(dns_expand_id);
        $('#dns').expandSubGridRow(dns_expand_id);
        dns_expand_id = null;
    }

},

dns_expand_id is initially null.  I need certain events in the subgrid to trigger a reload of the grid and want to expand the subgrid that triggered the reload.  So, after a successful server request I set dns_expand_id to the rowid containing the open subgrid and call

$('#dns').trigger('reloadGrid');

I know from the alert() that the correct value is passed to expandSubGridRow() but it isn't expanding and no errors are generated.

Any ideas on what I'm doing wrong or where I might look?

20/03/2010
20:33
Avatar
rodk
Member
Members
Forum Posts: 12
Member Since:
19/03/2010
sp_UserOfflineSmall Offline

Never mind. I'm an idiot.

When I said the correct ID was being passed I was mistaken. I had the ID of the row in the subgrid that triggered the reload, NOT the ID of the row in the parent grid.  Fixed that and all is fine.

Thanks again for a great plugin!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
49 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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information