Domanda

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

Thanks in advance..

È stato utile?

Soluzione

// 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);
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top