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
Subgrid
04/06/2013
22:19
Avatar
shakio
New Member
Members
Forum Posts: 1
Member Since:
04/06/2013
sp_UserOfflineSmall Offline

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!

07/06/2013
08:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information