Results 1 to 2 of 2

Thread: How to load TreeStore with data from multiple JSON

  1. #1

    Default Answered: How to load TreeStore with data from multiple JSON

    Hi,


    I was wondering how we can load data for a TreeStore from two JSON files using association. Lets say I have the first JSON with Folder and Subfolder nodes as shown below :
    -Folder (Root)
    --SubFolder1
    ----SubFolder1.1
    --SubFolder2
    ----SubFolder2.1
    ----SubFolder2.2
    --SubFolder3

    And then I have another JSON with file nodes as shown below :
    -Files (Root)
    --File1 {Parent: SubFolder1} [Note: Here Parent is a property of File1 node]
    --File2 {Parent: SubFolder1}
    --File3 {Parent: SubFolder1.1}
    --File4 {Parent: SubFolder2.2}
    --File5 {Parent: SubFolder2.2}
    --File6 {Parent: SubFolder2.2}

    Hope this is clear to all, I can provide more info if required. So, how can this be achieved?

  2. I don't believe associations can do that. You can always load and match the data from the second file by modifying the original store.

  3. #2
    Sencha User alex.volfson's Avatar
    Join Date
    Jan 2016
    Posts
    462
    Answers
    60

    Default

    I don't believe associations can do that. You can always load and match the data from the second file by modifying the original store.

Similar Threads

  1. How to load data from json to multiple combo box
    By sanjay_1224 in forum Ext JS 6.x Q&A
    Replies: 2
    Last Post: 24 Nov 2015, 6:21 AM
  2. Load nested json data in multiple lists
    By luciano.lima in forum Sencha Touch 2.x: Q&A
    Replies: 9
    Last Post: 17 Nov 2014, 6:43 AM
  3. TreeStore load from custom JSON
    By ultra2 in forum Ext: Q&A
    Replies: 2
    Last Post: 7 Dec 2011, 1:28 PM
  4. JSON won't load in Ext.data.TreeStore
    By TDeBailleul in forum Sencha Touch 1.x: Discussion
    Replies: 13
    Last Post: 28 Oct 2011, 3:00 AM
  5. Example of JSON data to load into a TreeStore
    By marcora in forum Ext GWT: Discussion
    Replies: 9
    Last Post: 29 Jun 2010, 6:18 PM

Tags for this Thread

Posting Permissions

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