-
26 Nov 2012 4:43 AM #1
Unanswered: Disable automatic sort on sort event handler for a column
Unanswered: Disable automatic sort on sort event handler for a column
Hello
I want to handle a sort event on a column click event. However, I also want to disable the sort of the page automatically done by Ext code.
How can I do it?
Thanks
-
28 Nov 2012 12:03 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
You could extend Column and override the doSort method.
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.
-
2 Dec 2012 6:53 AM #3
Thanks
Thanks
But I honestly don't know hot to extend your classes.Is it like Javascript regular extension?
I've noticed some code you have..you extend classes as follows:
Is that how I'm supposed to do it?Code:Ext.define('Ext.grid.column.Column',{ extend: 'Ext.grid.header.Container', alias: 'widget.gridcolumn', requires: ['Ext.util.KeyNav', 'Ext.grid.ColumnComponentLayout', 'Ext.grid.ColumnLayout'], alternateClassName:'Ext.grid.Column', . . .
Can you provide me with an example of how I extend Column?
thanks


Reply With Quote