Question

Can you tell me if it is possible to get data for easyui tree using ajax success..

Thanks in advance..

Was it helpful?

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);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top