extjs 4 树选中节点(无checkbox)

extjs树,当点击某个节点的时候,该节点处于选中状态。但是如何使用程序将某个节点设置为选中状态呢?只需要调用树的select()函数。

var node= myexTStore.getNodeById(“nodeId”);
TreePanel.getSelectionModel().select(node);

This entry was posted in Computer, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s