PDA

View Full Version : Disable automatic sort on sort event handler for a column



ahsec
26 Nov 2012, 4:43 AM
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

mitchellsimoens
28 Nov 2012, 12:03 PM
You could extend Column and override the doSort method.

ahsec
2 Dec 2012, 6:53 AM
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:



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',
.
.
.

Is that how I'm supposed to do it?

Can you provide me with an example of how I extend Column?

thanks