Results 1 to 2 of 2

Thread: create a tree panel from a local json file

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    3
    Vote Rating
    0
      0  

    Default 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
    191
    Answers
    9
    Vote Rating
    64
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •