Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8793 in 4.2.1.744.
  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    Boriska is on a distinguished road

      0  

    Default [4.2 RC] Trouble with TreeStore without TreePanel

    [4.2 RC] Trouble with TreeStore without TreePanel


    All the good days! The problem is that if we simply declare TreeStore without TreePanel and and call store.getRootNode().Expand(true) an error occurs:
    TypeError: me.getOwnerTree (...) is undefined
    [Interrupts on this error]

    me.expandChildren (true, me.getOwnerTree (). singleExpand, callback, scope);

    NodeInterface.js
    Code:
    / **
                     * @ Private
                     *  Called as a callback from the beforeexpand listener fired by {@ link #  method-expand} when the child nodes have been loaded and appended.
                     * /
                     onChildNodesAvailable: function (records, recursive, callback, scope) {
                         var me = this;
    
                         / / Bracket expansion with layout suspension.
                         / / In optimum case, when recursive, child node data are loaded and expansion is synchronous within the suspension.
                         Ext.suspendLayouts ();
    
                         / / Not structural. The TreeView's onUpdate listener just updates the [+] icon to [-] in response.
                         me.set ('expanded', true);
    
                         / / Listened for by NodeStore.onNodeExpand.
                         me.fireEventArgs ('expand', [me, me.childNodes, false]);
    
                         / / Call the expandChildren method if recursive was set to true
                         if (recursive) {
                             me.expandChildren (true, me.getOwnerTree (). singleExpand, callback, scope);
                         } Else {
                             Ext.callback (callback, scope | | me, [me.childNodes]);
                         }
    
                         Ext.resumeLayouts (true);
                     }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    Boriska is on a distinguished road

      0  

    Default


    Thank you!

Thread Participants: 1