EasyUI Forum
September 14, 2025, 02:39:34 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: tree not firing on uncheck  (Read 11714 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: March 21, 2012, 05:02:02 AM »

Hi, not sure if I am doing anything wrong, but during tree load the onCheck event is fired which is great as it shows the columns, however it does not hide those columns where the tree node is unchecked.

I am using the tree to dynamically show / hide columns in a datagrid.

Code:
onCheck:function(node){
  if(node.checked) {
    $('#data').datagrid('showColumn',node.id);
    console.log(node.id+' show');
}
else {
  console.log(node.id+' hide');
  $('#data').datagrid('hideColumn',node.id);
}
Logged

-- Licensed User --
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!