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.
It is necessary to define the id of the root node.