Is the following supported and if so, how?
If have an in memory object array:
[{
id: 1,
name: "item 1",
parentid: null
},
{
id: 2,
name: "item 2",
parentid: null
},
{
id: 3,
name: "subitem for 1",
parentid: 1
}]
I want the treeview to initially load and display the root items (with parentid null). When a user expands a root node, I want it to display all nodes with that node's id as parentid . I want to be able to build the hierarchy with no limit using this way.
If have an in memory object array:
[{
id: 1,
name: "item 1",
parentid: null
},
{
id: 2,
name: "item 2",
parentid: null
},
{
id: 3,
name: "subitem for 1",
parentid: 1
}]
I want the treeview to initially load and display the root items (with parentid null). When a user expands a root node, I want it to display all nodes with that node's id as parentid . I want to be able to build the hierarchy with no limit using this way.