EasyUI Forum
December 08, 2025, 07:36:42 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / easyui tree data output on: October 10, 2012, 06:42:12 PM
Hi all,

I am using tree http://www.jeasyui.com/documentation/tree.php and I can construct the tree from db data and it looks good.

In the demo example, I can see a function calling children:-
function getChildren(){
        var node = $('#tt1').tree('getSelected');
        if (node){
            var children = $('#tt1').tree('getChildren', node.target);
        } else {
            var children = $('#tt1').tree('getChildren');
        }
        var s = '';
        for(var i=0; i<children.length; i++){
            s += children.text + ',';
        }
        alert(s);
    }

while performing further drag and drop, I would like to get the new parentID for the moved file so that I can do some db updating, moreover, if I wish to trigger the event by 'onmouse up' rather than 'getSelected', what shall I do? Thanks!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!