Results 1 to 7 of 7

Thread: TreeStore: loadRawData not processing linear data (using parentId)

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-18219 in 6.0.1.250.
  1. #1
    Sencha Premium User
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    122

    Default TreeStore: loadRawData not processing linear data (using parentId)

    Ext version tested:
    • Ext 5.1.1
    • Ext 5.1.2 (fiddle)
    • Ext 5.1.3 (fiddle)
    • Ext 6.0.1 (fiddle)
    • Ext 6.0.2 (fiddle)


    Description:
    • When trying to load linear raw data into a treestore, the records are not "treeified".


    Steps to reproduce the problem:
    • loadRawData with linear data using parentId


    The result that was expected:
    • A tree built up using parentId. Same result as loading the data from by proxy.



    The result that occurs instead:
    • Data is added to store linearly. Data is not "treeified".




    Treeifying records is done in "onProxyLoad", which is not processed using loadRawData.

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962

    Default

    Thanks for the report, this appears to be fixed in the latest ExtJS 5 (.1.2) release.


    Regards,
    Bryan

  3. #3
    Sencha Premium User
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    122

    Default

    Quote Originally Posted by bjdurham85 View Post
    this appears to be fixed in the latest ExtJS 5 (.1.2) release.
    I just changed the fiddle to use ExtJS 5.1.2 and the behavior is the same as with 5.1.1. Exactly the same behavior in 6.0.1, too.

  4. #4
    Sencha Premium Member
    Join Date
    Nov 2007
    Location
    Sydney
    Posts
    117

    Default

    I've come across the same problem in 5.1.2.

    The workaround I've used has been:
    treeStore.setRoot({
    children: [] // pass your array of items in here
    })

    ...setRoot can accept a JSON object which it then turns in to nodes using the reader configured for the proxy.

  5. #5
    Sencha Premium User
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    122

    Default

    Tested again with ExtJS 5.1.4 (nightly build 2016-07-03) and ExtJS 6.0.2 and still broken. See fiddle.

  6. #6

    Default

    Same thing for me.

  7. #7

    Default

    Same issue in 6.5.2. Is this a "normal behavior"?
    Actually I can't really find a good example of treeStore.loadData or loadRawData when the data is not coming from the server.

Similar Threads

  1. [FIXED] Ext.data.Store.loadRawData does not set total property
    By jej2003 in forum Ext:Bugs
    Replies: 2
    Last Post: 17 May 2015, 9:43 PM
  2. Replies: 2
    Last Post: 10 Dec 2014, 2:34 AM
  3. Replies: 1
    Last Post: 17 Nov 2014, 12:23 AM
  4. Replies: 4
    Last Post: 2 Mar 2012, 7:23 AM

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
  •