Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by RamaRao R on Nov 24, 2009 22:30
open dhtmlx forum
Clarification on Tree JSON

 

We are specifying '{id: '0', item: []}' at the root level which not showing any where in tree. I have my JSON format below:

 var treeData =
   
{id: '0', item: [
        { id: 1, text: 'Company', open: 1, im0: 'EntityStatus-Forward.gif', im1: 'EntityStatus-Forward.gif', im2: 'EntityStatus-Forward.gif', NODEDATA:'abc||xyz||123||$#@'
        item: [
            { id: 2, text: 'Location 1',
                item: [{ id: 4, text: 'Location Name'}]
            },
            { id: 3, text: 'Location 2',
                item: [{ id: 5, text: 'Location Name'}]
            }
        ]}
   
]}

Please clarify the purpose of specifying this.

Thanks,

RamaRao R.

Answer posted by Alex (support) on Nov 25, 2009 01:51

It is necessary to define the id of the root node.