PDA

View Full Version : How to get some data from TreePanel or loader?



ivip
8 Sep 2010, 11:37 PM
Basically the idea is to get the data from treepanels loader which comes from some dataUrl.
I`m trying to make DragZone.getDragData to return the someProperty value from json data.

loader: new Ext.tree.TreeLoader({
dataUrl:'tree-data.json'
}),and this is the json:

[{
text:'Basic Ext Layouts',
expanded: true,
children:[{
text:'Absolute',
someProperty:'someText',
id:'absolute',
leaf:true
},{
text:'Accordion',
someProperty:'someOtherText',
id:'accordion',
leaf:true
},{....