Threaded View
-
15 Nov 2012 5:54 AM #1
autoload condig property of TreeStore don't work
autoload condig property of TreeStore don't work
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.0
- FF 16.0.2
- IE8
- Opera 12.02
- autoload: true config property of treeStore don't work
- See ext js code and json data below;
- Open the application in browser and see, that treepanel is empty
- TreePanel must intrepets treeStore data
- TreePanel doesn't intrepets treeStore data
HELPFUL INFORMATIONCode:Ext.application({ name: 'WebConsole', launch: function() { var store = Ext.create('Ext.data.TreeStore',{ autoload: true, proxy:{ type: 'ajax', url: 'server.json', reader: { type:'json' } } }); var treepanel = Ext.create('Ext.tree.Panel', { store: store, title: 'Services', }); Ext.create('Ext.container.Viewport', { layout:'fit', items: [ treepanel ] }); }});
server.json content:
Operating System:Code:{text: 'Services',children:[ {text : 'JMS',leaf : false, expanded: true, children:[ {text : 'ActiveMQClient',leaf : true,icon: 'images/STARTED_icon.gif'}, {text : 'ActiveMQServer',leaf : true,icon: 'images/STARTED_icon.gif'}]}, {text : 'Routes',leaf : false, expanded: true, children:[ {text : 'Backend Emulation',leaf : false, expanded: true, children:[ {text : 'Backend Emulation[1]',leaf : true,icon: 'images/STARTED_icon.gif'}, {text : 'Backend Emulation[2]',leaf : true,icon: 'images/STARTED_icon.gif'}]}, {text : 'XEConnect',leaf : false, expanded: true, children:[ {text : 'XEConnect Inbound',leaf : false, expanded: true, children:[ {text : 'XEConnect Inbound[1]',leaf : true,icon: 'images/STARTED_icon.gif'}, {text : 'XEConnect Inbound[2]',leaf : true,icon: 'images/STARTED_icon.gif'}]}, {text : 'XEConnect Outbound',leaf : false, expanded: true, children:[ {text : 'XEConnect Outbound[1]',leaf : true,icon: 'images/STARTED_icon.gif'}, {text : 'XEConnect Outbound[2]',leaf : true,icon: 'images/STARTED_icon.gif'}]}]}]}, {text : 'XEConnect',leaf : false, expanded: true, children:[ {text : 'CORE Server',leaf : true,icon: 'images/STARTED_icon.gif'}]}]}- Windows 7 Pro
Please say something about this problem:
Thank you.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote