PDA

View Full Version : create a tree panel from a local json file



xuejinruan
31 Aug 2011, 10:26 AM
I was trying to populate a tree panel from a local json file, but could not get it work. It seems if the json was return by a remote proxy call, it would work; and if I defined a json variable in the javascript file as the children node, it would work. But I could not get it working trying to pull it from an external (local) json file. Could someone give an example how to create a treestore from a local json file, or how to populate a tree panel from a local json file? Thanks!

loiane
2 Sep 2011, 9:14 AM
To load files locally, you have to deploy your app into a server.
The only way to do it without deploying to a server is to use a local array and load it into the store.