1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    95
    Vote Rating
    0
    ahsec is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3157
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    95
    Vote Rating
    0
    ahsec is on a distinguished road

      0  

    Default 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:

    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',
            .
            .
            .
    Is that how I'm supposed to do it?

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

    thanks