Forum
16:16
04/11/2008
Hi,
I've been playing withsubgrids and have been unable to get something to work. It might be that jqGrid does not support this in which case I mayl raise it in the 'feature request' forum.
Suppose the data I use to populate my grid (say we use invoices like the examples in the docs) already includes child elements (for example line items for those invoices). Is it possible to configure the grid to use those child elements from the orginal data set? I though this might be posible using the suybgrid settings of the xmlReader but so far I have only been able to get it to work using a separate subgrid URL and that obviously hits the server for every subgrid.
Thanks,
Phil
06:37
Moderators
30/10/2007
Hello,
Did you mean that oncle loaded the child's should be not loaded again.
Something like the TreeGrid component.?
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.
08:35
04/11/2008
Hi Tony,
If I were to pass something like this to the grid:
<?xml version="1.0" encoding="utf-8"?>
<invoices>
<invoice>
<id>1</id>
<amount>10</amount>
<lineitem>1 jar of coffee @ 6</lineitem>
<lineitem>1 litre of milk @ 4</lineitem>
</invoice>
</invoices>
I'd like to be able to use this data to populate both the grid and the subgrid such that when I expand the subgrid no calls are made to the server.
I've been trying to do this unsuccessfully so I'm assuming the grid does not support this but it could be me doing it wrong.
Thanks,
Phil
06:42
Moderators
30/10/2007
Hello,
Currently this will not work, but instead this have sence. Have do not change the code for the subgrids and maybe it is time to do that.
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.
Most Users Ever Online: 715
Currently Online:
94 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