Another general question belonging the VirtualTree widget:
I have JSON data with a structure like this coming from the server:
{
id : 1,
label : "node1"
children : [ {id:2, label:"node1.1"}, {id:3, label:"node1.2"} ]
}
Now I want to select a specific node by the id of the node, for example
something like: tree.selectNodeById(2)
As far as I know there is no build-in mechanism for that in the VirtualTree.
So what is the right approach to implement this? Walking recursively through
the model of the tree, search for the node with the id and push it into the
selection of the tree?
Or is there another more elegant approach?
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/VirtualTree-and-Selection-tp7582165.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
VERIFY Test and improve your parallel project with help from experts
and peers. http://goparallel.sourceforge.net
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel