Hello, I am feeding the treeview with the object displayed below and it works perfectly well. However I need to set the SubNode 2 as selected node, but it only works if I specify the index of the array like that
$('#tree').treeview('selectNode', [ 1, { silent: true } ]);
Is there a way to select the node by its Id? or any other attribute?
something like $('#tree').treeview('selectNode', [ {id:2}, { silent: true } ]);
Hello, I am feeding the treeview with the object displayed below and it works perfectly well. However I need to set the SubNode 2 as selected node, but it only works if I specify the index of the array like that $('#tree').treeview('selectNode', [ 1, { silent: true } ]);
Is there a way to select the node by its Id? or any other attribute?
something like $('#tree').treeview('selectNode', [ {id:2}, { silent: true } ]);