Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个TreeGrid,我有一个Tree:
TreeGrid
Tree
Tree nodesTree = new Tree(); TreeGrid navTreeGrid = new TreeGrid(); navTreeGrid.setData(nodesTree);
并且我希望每次向树中添加一个节点以专注于它。
更一般地说,我怎样才能从代码中选择TreeNodea Tree?
TreeNode
我知道这是navTreeGrid.getSelectedRecord()方法,但不是我想要的。
navTreeGrid.getSelectedRecord()
谢谢!
您可以使用其中一种selectRecord 方法。
grid.selectRecord(record);