Forum
22:19
04/06/2013
Hi, first off let me say I love this product!
It’s been a real life saver…
I have came up on a problem and cannot find a solution.
I have an asp.net mvc site, but communication with the grid is not using models, just ajax json calls.
I would like to create a subgrid for my grid.
The data is being passed from the controller to the browser, but, all I ever see is the subgrid header, no data.
I originally setup the json string just like I did with the main grid.
But then I ran across some info that stated the string I send back is in a different format (cell format). Doing some research I found this site:
http://wiki.gxtechnical.com/co.....nipulation
The cell format looks like this:
{
"totalpages": "xxx",
"currpage": "yyy",
"totalrecords": "zzz",
"invdata" : [
{"id" :"1", "invrow" :["cell11", "cell12", "cell13"]},
{"id" :"2", "invrow" :["cell21", "cell22", "cell23"]},
...
]
}
So I refactored my string to match and still no luck.
Is the correct format to send the data to the subgrid with?
Thanks!
08:05
Moderators
30/10/2007
Hello,
Sorry to ask, but I do not understand what you use
Simple subgrid or subgrid as grid.
We have examples in our demo page , but all of them are in xml data source.
If you use simple subgrid you will need to look at jsonReader.subgrid
see docs for the readers.
If you use sugbrid as grid there is nothing special the subgrid grid is just regular grid.
Please let me know what you use so that I eventually can help.
Regards
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:
42 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