Results 1 to 2 of 2

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

    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
    220
    Vote Rating
    10
      0  

    Default 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 Attached Images

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

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

Posting Permissions

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