1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    3
    Vote Rating
    0
    xuejinruan is on a distinguished road

      0  

    Default Unanswered: create a tree panel from a local json file

    Unanswered: create a tree panel from a local json file


    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!

  2. #2
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    181
    Answers
    7
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      0  

    Default


    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.
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

Thread Participants: 1