Forum



17:54

10/02/2010

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:
… 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>
10:04

Moderators
30/10/2007

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.
11:02

10/02/2010

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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66