Results 1 to 3 of 3

Thread: [4.1] expand event is fired many times in the tree panel.

    You found a bug! We've classified it as EXTJS-6862 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Taiwan
    Posts
    106
    Vote Rating
    4
      0  

    Default [4.1] expand event is fired many times in the tree panel.


    Ext version tested:

    • Ext 4.1

    Browser versions tested against:
    • Any

    Description:

    I use a model with a listener handling expand event in the tree panel.
    The tree has depth of n.
    When I expand the node with depth i, the expand event is fired i times.

    For example, When I click the node with depth 3, it shows
    Attachment 37458

    Steps to reproduce the problem:

    • Expand the tree node

    The result that was expected:
    • When I expand the node with depth i, the expand event is fired once

    The result that occurs instead:
    • When I expand the node with depth i, the expand event is fired i times

    Test Case:

    PHP Code:

    Ext
    .define('myNodeModel', {
        
    extend 'Ext.data.Model',
        
    fields : [ 'id''text''type''state'],
        
    listeners: {        
            
    expand: function(node) {            
                 
    console.log('expand'node);        
            }    
       } 
    }); 

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

    Default

    Thanks for the report.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Taiwan
    Posts
    106
    Vote Rating
    4
      0  

    Default

    However, itemexpand event in treepanel works correctly.

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
  •