PDA

View Full Version : how to deselect a tree node from tree panel



a6985600
9 Apr 2013, 8:59 PM
selectionMode of the tree is"SINGLE" .

like i try to this Ext.getCmp('UserOrgTree').getSelectionModel().unselect();

a6985600
9 Apr 2013, 9:29 PM
Ext.getCmp('UserOrgTree').getSelectionModel().deselectAll();

Farish
9 Apr 2013, 10:38 PM
you can use deselect instead of deselectAll if you want to deselect some particular node(s):

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.selection.Model-method-deselect