EasyUI Forum
May 08, 2024, 02:24:24 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: checkOnSelect-like function for Tree  (Read 6403 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: February 25, 2014, 08:35:43 AM »

Is it possible to have checkOnSelect option for Tree (like it is done for Datagrid) ?

General idea is to allow user to select items in Tree with checkboxes by clicking on labels. (not only checkboxes)

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 26, 2014, 06:41:11 AM »

No 'checkOnSelect' property exists in tree. If you wish to check a node when selecting it, try this:
Code:
$('#tt').tree({
onSelect: function(node){
$(this).tree('check', node.target);
}
})
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: February 26, 2014, 07:56:54 AM »

Thanks!
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!