Search code examples
javascriptjsonextjsextjs4treepanel

How can I load a TreePanel with local JSON data?


How can I load some arbitrary data into treepanel using local JSON object? All of the examples shipped with ExtJS 4.0 distribution work with AJAX requests.


Solution

  • There's an example using a MemoryProxy in the Sencha Documentation. Use that as your proxy instead of an ajax proxy.