EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on October 08, 2015, 08:46:13 PM



Title: Tree onBeforeLoad get selected
Post by: devnull on October 08, 2015, 08:46:13 PM
This always seems to return null, even if a tree node is selected:

Code:

    onBeforeLoad: function(node,param){
      var sel = $(this).tree('getSelected');
      console.log('selected:'+sel);
    },


Title: Re: Tree onBeforeLoad get selected
Post by: jarry on October 09, 2015, 03:11:54 PM
If a tree node is selected, the getSelected method returns this selected node. Please check if no nodes are selected.