-
12 Feb 2013 5:52 PM #1
'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:
- ________
-
12 Feb 2013 6:50 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Feb 2013 10:01 AM #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)?
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote