EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jianspf on December 06, 2017, 08:12:40 PM



Title: How to unselect all nodes?
Post by: jianspf on December 06, 2017, 08:12:40 PM
How to unselect all nodes in a tree?I can't find a proper method to do it.
I built a contextMenu in a tree, every node was selected when I run contextmenu on right click the every node.
How can I unselect the others when I right click one node?


Title: Re: How to unselect all nodes?
Post by: jarry on December 08, 2017, 07:33:56 PM
Please call 'select' method to select a node.
Code:
onContextMenu: function(e, node){
$(this).tree('select', node.target)
},