Results 1 to 3 of 3

Thread: 'beforesort' event is not fired by TreeStore

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    20
    Vote Rating
    0
      0  

    Default 'beforesort' event is not fired by TreeStore

    REQUIRED INFORMATION



    Ext version tested:

    • Ext 4.1.1



    Browser versions tested against:
    • FF18.0.2



    DOCTYPE tested against:

    • ____



    Description:

    • Observe slow sorting on Tree Panel, debugging with firebug, found that events are not suspended on Ext.tree.View which suppose to per 4.1 docs.sencha.com
    • I am not even able to find 'beforeSort' event on TreeStore instance, neither 'onBeforeSort' function on Ext.tree.View
    • Is it something documented but never implemented?


    Steps to reproduce the problem:

    • using tree grid sample with firefox+firebug



    The result that was expected:

    • as documented, suspendEvents called on tree.view.store(node store) before sorting on tree, resumeEvents and refresh tree view after sorting



    The result that occurs instead:

    • events not suspended on tree.view.store, layout gets update on 'sort' event fired by each node



    Test Case:


    Code:
        <<insert working code to reproduce the report >>






    HELPFUL INFORMATION




    Screenshot or Video:

    • attached



    See this URL for live test case: http://




    Debugging already done:

    • none



    Possible fix:

    • register 'beforesort' event on TreeStore
    • before sort, fire 'beforesort' event on TreeStore
    • work around, override TreeStore



    Additional CSS used:

    • only default ext-all.css

    Operating System:

    • ________

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

    Default

    Using a newer release (4.1.3 to be specific) I added this to the treegrid.js example and it is working for me:

    Code:
            listeners : {
                beforesort : function() {
                    console.log('beforesort');
                }
            }
    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
    Oct 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default

    this bug has huge performance impact on tree panel, any plan to apply the fix to evaluation version (currently it is 4.1.1a)?

Posting Permissions

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