Json nesting with dhtmlxgrid and grouping

Hello,



I am using the 2.5 pro suite on IE 8. I looked at your online documentation for Json structuring with the dhtmlxGrid component. The example shows this (see dhtmlx.com/dhxdocs/doku.php?id=d … at_details):



{total_count:50000,

pos:0,

rows:[

{ id:1002,

selected:true, // select row

style:“color:red;”, // assign style

data:[

“1000”,

“Blood and Smoke”,

{“value”:“Stephen King”,“type”:“ed”},//change cell type

]

}

]}



I would assume that the “Stephen King” Json object is a way to represent a cell in a unique manner similar to the XML approach. My Json resembles this:



{pos:0,

    rows:[

     { id:0,

          data:[

          {‘value’:‘XV19CTSZCB’,‘class’:‘noEditCellNumber’},

          ‘STRATOLINER DELUXE CA’,

          ‘0’,‘0’,‘0’,‘Confirmed’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’]},

     { id:1,

          data:[{‘value’:‘XV19CTSZCB’,‘class’:‘noEditCellNumber’},

     ‘STRATOLINER DELUXE CA’,

     ‘’,’’,’’,‘Requested’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’,‘0’]}

     ]

}



In the case of the first cell of each of these two rows the value renders on the screen as: [object Object]



It does not show the value, ‘XV19CTSZCB’. What’s wrong? As well, I assume that the Json defined cells can take the same attributes as the XML ?





Please check if you have attached dhtmlxgrid_json.js file to your page. If issue still occurs please provide us example where we can reproduce this issue. (You can send such example direclty to the support@dhtmlx.com)

Yes.  That’s it.  Problem solved.  Thank you.

Hi,

Can you please let me how did you solve this issue. Currently I am facing the same issue.

Regards,
Madhvi

Please, make sure that the “dhtmlxgrid_json.js” is included on the page.
note that the extension is available in PRO version only.