EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on April 21, 2015, 06:57:51 AM



Title: How to select Combotree item
Post by: devnull on April 21, 2015, 06:57:51 AM
How do I select a node of a Combotree so that it fires the onSelect() event ?

This does not work:

Code:
  var bc = 'xxx'
  var gid = $('#TREE');
  gid.combotree('setValue',bc);
  var tr = gid.tree('tree');
  var node = tr.tree('find',bc);
  if(!node) return alert('Invalid ID'); 
  tr.tree('select',node.target);


Title: Re: How to select Combotree item
Post by: stworthy on April 21, 2015, 05:16:45 PM
Please refer to this example https://jsfiddle.net/od70tkbx/