EasyUI Forum
June 23, 2018, 12:53:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to unselect all nodes?  (Read 466 times)
jianspf
Newbie
*
Posts: 9


View Profile Email
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 1384


View Profile Email
« Reply #1 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)
},
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!