[qooxdoo-devel] VirtualTree and Selection
Brought to you by:
ecker,
martinwittemann
From: chrisch <chr...@go...> - 2012-11-29 15:27:11
|
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. |