Categories | Question details Back To List | ||
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 http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:syntax_templates#json_format_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 <cell>? Answer posted by dhxSupport on Nov 26, 2009 04:47 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) Answer posted on Nov 30, 2009 08:08 Yes. That's it. Problem solved. Thank you. |