Hello,
I want to hide the CreateChild command ont he third level of my nodes.
So if wonder if a way to get the node level of an element exists on databound event ?
Or maybe ther is a better way to accomplish it ?
I started the databound event like this:
function dataBound(treeview) {
var node;
var nodes = treeview.sender.dataSource.view();
for (var i = 0; i < nodes.length; i++) {
node = nodes[i];
}
}
I don't want use the hasChildren attribut beacause in my model sometimes element at level 2 doesn't have children.
Thank you in advance