I am new to Extjs, I want to load data dynamically into the tree. The server returns me data, which is not in json format i.e the structure of data is pretty much messed up. What URL should I specify in my code and how do i deal with the format of data. There is no way to differentiate between parent and child when looking at the data returned by the server. I am trying to build a tree based on following code...
Ext.onReady(function() {
var Tree = Ext.tree;
var tree = new Tree.TreePanel({
useArrows: true,
autoScroll: true,
animate: true,
enableDD: true,
containerScroll: true,
border: false,
// auto create TreeLoader
dataUrl:'????????????????????',
root: {
nodeType: 'async',
text: 'ALL',
draggable: false,
id: ''
}
});
// render the tree
tree.render('tree-div');
tree.getRootNode().expand();
});