extjs loading tree from json file using MVC extjs loading tree from json file using MVC json json

extjs loading tree from json file using MVC


finally found a solution

Remove the line

root:'results'

from the model

and star the json with

{ text: '.',children: [{

full json

{ text: '.',children: [{    text:'Basic Ext Layouts',    expanded: true,    children:[{        text:'Absolute',        id:'absolute',        leaf:true    },{        text:'Accordion',        id:'accordion',        leaf:true    },{        text:'Anchor',        id:'anchor',        leaf:true    },{        text:'Border',        id:'border',        leaf:true    },{        text:'Card (TabPanel)',        id:'card-tabs',        leaf:true    },{        text:'Card (Wizard)',        id:'card-wizard',        leaf:true    },{        text:'Column',        id:'column',        leaf:true    },{        text:'Fit',        id:'fit',        leaf:true    },{        text:'Table',        id:'table',        leaf:true    },{        text:'vBox',        id:'vbox',        leaf:true    },{        text:'hBox',        id:'hbox',        leaf:true    }]},{    text:'Custom Layouts',    children:[{        text:'Center',        id:'center',        leaf:true    }]},{    text:'Combination Examples',    children:[{        text:'Absolute Layout Form',        id:'abs-form',        leaf:true    },{        text:'Tabs with Nested Layouts',        id:'tabs-nested-layouts',        leaf:true    }]}]}