Hi,

I have this code to populate a treevirtual:
    
    var root = menu.getDataModel().addBranch(null, "Root", true);
    // add more items
    tree.getSelectionModel().setSelectionInterval(root, root);

but I don't know how to initially select programmatically the root node.
The code shown above selects the 1st child of the root node.
What is the correspondence between nodeId and row numbers?
Thanks in advance for any answer.

Regards
David
-- 
View this message in context: 
http://www.nabble.com/How-to-select-an-item-in-treevirtual-tf3440169.html#a9592328
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to