Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: [FIXED-278][2.x,3.x] AsyncTreeNode's loader is overridden by the one from treePanel

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    Without changing the current Ext JS code your only option is to set applyLoader:false in the root loader and specify loaders in the child node attributes.

    ps. Shouldn't the correct fix be:
    Code:
    Ext.override(Ext.tree.TreeLoader, {
    	createNode : function(attr){
    		if(this.baseAttrs){
    			Ext.applyIf(attr, this.baseAttrs);
    		}
    		if(this.applyLoader !== false && !attr.loader){
    			attr.loader = this;
    		}
    		if(typeof attr.uiProvider == 'string'){
    		   attr.uiProvider = this.uiProviders[attr.uiProvider] || eval(attr.uiProvider);
    		}
    		if(attr.nodeType){
    			return new Ext.tree.TreePanel.nodeTypes[attr.nodeType](attr);
    		}else{
    			return attr.leaf ?
    						new Ext.tree.TreeNode(attr) :
    						new Ext.tree.AsyncTreeNode(attr);
    		}
    	}
    });

  2. #12
    Ext User
    Join Date
    Oct 2008
    Posts
    2
    Vote Rating
    0
      0  

    Talking

    Hi Condor, thanks that did the trick!

  3. #13
    Sencha User trasherdk's Avatar
    Join Date
    Dec 2008
    Location
    Thailand
    Posts
    42
    Vote Rating
    1
      0  

    Thumbs up Thanks. That just did it.

    Cool.

    I've been struggling with this for the last week. This really did hit the spot.

    Thanks a lot.

  4. #14
    Ext User
    Join Date
    May 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default

    As of ExtJS 3 this misbehavior is still present. Are there any plans to change this?

  5. #15
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    I'll move this thread to the 3.0 Bugs section.

  6. #16
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,425
    Vote Rating
    858
      0  

    Default

    Fix applied to svn in rev #5440 for patch release 3.0.3.

    Fix also applied to the 2.x branch.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Page 2 of 2 FirstFirst 12

Posting Permissions

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