Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by abrauer on Oct 01, 2008 01:21
open dhtmlx forum
JSON for TreeGrid

Hi,

is there a way to initialize a treeGrid (not only a grid) with JSON data?
If yes, can you provide an example for the JSON structure please?

thank you
Answer posted by Support on Oct 15, 2008 08:48
Default code doesn't provide such functionality. 
You can use attached extension, it extends json support and allows loading of treegrid from json.


Attachments (2)
Answer posted by abrauer on Oct 01, 2008 03:23
Thanks you for the extension.

Could you please provide a little example for what the JSON data should look like?

Answer posted on Oct 01, 2008 03:32
please apologize, I did not see that json data was attached as well.

thank you
Answer posted by Support on Oct 01, 2008 05:11
>>little example for what the JSON data should look like
The data format is the same as for plain grid, except of  - each row object can have rows collection , which may contain child rows