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_Related Related Topics sp_TopicIcon
xmlReader 'grid as a subGrid'
12/11/2010
17:54
Avatar
Seroczynski
The Netherlands
Member
Members
Forum Posts: 17
Member Since:
10/02/2010
sp_UserOfflineSmall Offline

Dear Tony,

I've been scouting the entire jqGrid website for an answer to my question but it cannot be found. I've tried the following pages:

Wiki: Retrieving data

Wiki: Subgrid

Wiki: Subgrid as Grid

… and ofcourse the jqGrid Demos.

Nowhere is to be found how you manage the xmlReader of a Subgrid as Grid. The subGrid shows no records. I use a custom method for my XML layout which works fine with my master grid. I'll paste a snippet of the xml settings I've been using for my master grid. This is the same configuration as I'd like to use for my connected subGrid.

xmlReader from my jqGrid code

xmlReader: { 
root: 'Grid',
row: 'Rij'
}
...

Response to be found at my XML file

<Grid>

<Rij>

    <ID><![CDATA[foobar]]></ID>

    <Naam><![CDATA[foorbar2]></Naam>

</Rij>

</Grid>

14/11/2010
10:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The xmlReader as described in wiki has a section called subgrid. This section is responsible for the description of data comming to the subgrid.

http://www.trirand.com/jqgridw.....eving_data

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.

15/11/2010
11:02
Avatar
Seroczynski
The Netherlands
Member
Members
Forum Posts: 17
Member Since:
10/02/2010
sp_UserOfflineSmall Offline

Hey Tony,

As I've said in my original post, there is no information about the settings for the xmlReader of a Subgrid as Grid, only the information about the notation of a Subgrid's xmlReader is to be found there.

However, I managed to figure out what I was doing wrong. In case you want to configre the xmlReader of a Subgrid as Grid you need to define the xmlReader within the Subgrid as Grid tags. A short example:

...
jQuery('#'+subgrid_table_id).jqGrid({ 
xmlReader: { 
root: 'Grid', 
row: 'Row', 
page: 'Row>Page', 
total: 'Row>Total', 
records: 'Row>Records', 
repeatitems: false, 
}, 
...

Hopefully somebody finds this useful :)

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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