EasyUI Forum
April 20, 2024, 02:12:16 AM *
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 3620 times)
jianspf
Newbie
*
Posts: 12


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: 2262


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!