// create tree first
$('#tt').tree({
...
});
get data in your success method and use loadData method to load it in your tree
var data = [{...},{...}];
// then call 'loadData' method
$('#tt').tree('loadData', data);
Question
Can you tell me if it is possible to get data for easyui tree using ajax success..
Thanks in advance..
Solution
// create tree first
$('#tt').tree({
...
});
get data in your success method and use loadData method to load it in your tree
var data = [{...},{...}];
// then call 'loadData' method
$('#tt').tree('loadData', data);