Results 1 to 3 of 3

Thread: 'beforesort' event is not fired by TreeStore

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1

    Default 'beforesort' event is not fired by TreeStore


    Ext version tested:

    • Ext 4.1.1

    Browser versions tested against:
    • FF18.0.2

    DOCTYPE tested against:

    • ____


    • 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
    • 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 store) before sorting on tree, resumeEvents and refresh tree view after sorting

    The result that occurs instead:

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

    Test Case:

        <<insert working code to reproduce the report >>


    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 Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


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

            listeners : {
                beforesort : function() {
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:

    Posts are my own, not any current, past or future employer's.

  3. #3


    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