EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 08:47:12 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
How to unselect all nodes?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to unselect all nodes? (Read 3686 times)
jianspf
Newbie
Posts: 12
How to unselect all nodes?
«
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: 2264
Re: How to unselect all nodes?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...