-
20 Feb 2013 11:27 PM #1
No Request from AjaxProxy to server
No Request from AjaxProxy to server
Dear all,
I've tried the following:
Created a TreePanel
Created a TreeStore
Created a Model
Added data manually to the Store
=> TreePanel was displayed correctly
Removed data from the store
Added an ajax proxy
=> The url is not requested and no data ist displayed.
What could be the reason?
Here is my code:
Code:Ext.define('PM.store.Projects', { extend: 'Ext.data.TreeStore', model: 'PM.model.Project', autoLoad: true, proxy: { type: 'ajax', url: 'data/projectTree.json', }, });
-
21 Feb 2013 7:32 AM #2
You would have to post your JSON and update your reader based on the data
example
Scott.Code:proxy: { type: 'ajax', url: 'tree.json', reader: { type: 'json', root: 'children' } }


Reply With Quote