EasyUI Forum
May 02, 2024, 07:47:28 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: tutorial/tree/tree6.php update is needed  (Read 5668 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: November 25, 2015, 07:12:50 AM »

http://www.jeasyui.com/tutorial/tree/tree6.php

In case if I need to use tree with checkboxes I load some items with already checked state.
In order to do this I would propose to update code on this page a little bit.

Code:
if (!exists(rows, row.parentId)){
nodes.push({
id:row.id,
text:row.text,
checked:row.checked
});
}

and

Code:
var child = {id:row.id,text:row.text,checked:row.checked};
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!