Forum

July 12th, 2025
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
subgrid not populated on initial data load
07/03/2010
13:05
Avatar
zadev
South Africa - Cape Town
Member
Members
Forum Posts: 5
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Hi all

Thanks for a great plugin. I am new to jQuery and jqGrid.

I have nested sub-grids. I followed the example from the documentation and that functionallity works great. Now I implemented the onComplete event to select the first row in the master grid, this is working, I chain the onRowSelect event to the onComplete event and this fires. However the data in the first sub-grid is not displayed.

onComplete: function() {

  var ids = $(this).jqGrid('getDataIDs);

  $(this).jqGrid('setSelection', ids[0]).trigger('onSelectRow', ids[0]);

}

During debugging, if I single step the data is displayed in the sub-grid  but not in normal mode. In normal mode firebug indicates that the data is not passed correctly to the database php functions.

One last point this app is runing in the CodeIgniter framework.

Any help is appreciated.

Steven

08/03/2010
09:41
Avatar
zadev
South Africa - Cape Town
Member
Members
Forum Posts: 5
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

I have added a navGrid to the subgrid with a refresh option. When refershing the grid the data is displayed.

Can someone please help with this problem.

09/03/2010
20:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Try to use the appropriate method for the subgrid

http://www.trirand.com/jqgridw.....id#methods

I recommend you to use expandSubgridRow

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.

09/03/2010
20:44
Avatar
zadev
South Africa - Cape Town
Member
Members
Forum Posts: 5
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Hi Tony

Thanks for answering. I will give it a try and let you know.

Us noobs always seem to choose the wrong method!

Steven

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
18 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