Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-9229 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    St. Louis
    Posts
    212
    Vote Rating
    9
    jimmylu98 will become famous soon enough

      0  

    Default extjs 4.2.0 remote tree node expand not take proxy.extraParams set at beforeexpand

    extjs 4.2.0 remote tree node expand not take proxy.extraParams set at beforeexpand


    I think this is another serious bug with 4.2.0. It is about remote tree node expand.

    Before node expand, I assign some node attributes to store.proxy.extraParams, for example, nodeType.

    The below simple test example, the default nodeType is 'initial', when expand 'Node 1', nodeType is set to 'nodeExpand', in the Firebug Post, it should display: 'nodeType nodeExpand'. This works fine with 4.1.1a (and 3.x.x), but with 4.2.0, it display: 'nodeType initial', which is incorrect. See attached picture.

    Tested with Chrome 25 and FF18

    PHP Code:

    Ext
    .onReady(function() {
        var 
    store Ext.create('Ext.data.TreeStore', {
            
    proxy: {
                
    type'ajax',
                
    url'check-nodes.json',
            
    actionMethods: { read'POST' },
            
    extraParams: { sid'id8888'nodeType'initial' }
            },
            
    listeners: {
            
    beforeexpand: function( node ) {
                
    store.proxy.extraParams.nodeType 'nodeExpand';
            }
        }
        });

        var 
    tree Ext.create('Ext.tree.Panel', {
            
    autoScrolltrue,
                
    title'add node to tree',
            
    rootVisiblefalse,
               
    width400,
                
    height300,
            
    root:{     text:'root',
                
    leaffalse,
                
    expandabletrue,
                
    expanded:true,
                
    children:[{
                    
    text'Node1',
                    
    leaffalse,
                    
    expandabletrue
                
    }, {
                    
    text'Node2',
                    
    leaffalse,
                    
    expandabletrue
                
    }]
            },
            
    storestore,
                
    renderToExt.getBody()
        });

    }); 
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Vote Rating
    854
    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.

Thread Participants: 1