Hybrid View

    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
    sinbadblue is on a distinguished road

      0  

    Default 'beforesort' event is not fired by TreeStore

    '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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    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


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    6
    Vote Rating
    0
    sk@ia is on a distinguished road

      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)?

Thread Participants: 2