silan
22 Aug 2011, 8:03 AM
My tree store get data from server, so the data is not static.
The initial data has no node checked. I want to pass in some node IDs, so the nodes with these IDs are checked before or immediately after the tree get displayed.
I get the tree node I want to change with getNodeById, then used mynode.checked = true, but this doesn't really work (no error either). I thought maybe the node was not associated (as reference) with the tree so I need to write the changed node back to the tree. But I don't see any documented method doing that.
The initial data has no node checked. I want to pass in some node IDs, so the nodes with these IDs are checked before or immediately after the tree get displayed.
I get the tree node I want to change with getNodeById, then used mynode.checked = true, but this doesn't really work (no error either). I thought maybe the node was not associated (as reference) with the tree so I need to write the changed node back to the tree. But I don't see any documented method doing that.