我有一個smartgwt treegrid,在擴展組時,我需要自動選擇該組的第一個子節點。我可以找到孩子,但我沒有看到如何選擇節點。以編程方式在SmartGWT treegrid中選擇一個節點
TreeGrid moduleTree = new TreeGrid();
final Tree tree = new Tree();
moduleTree.addFolderOpenedHandler(new FolderOpenedHandler() {
public void onFolderOpened(FolderOpenedEvent event) {
TreeNode[] children = tree.getChildren(event.getNode());
if (children.length > 0) {
// TODO
}
}
});
任何想法? 謝謝!
有一個llok在http://forums.smartclient.com/showthread.php?t=4790 – 2012-02-15 20:44:48