1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default Answered: Stopping a sortchange event

    Answered: Stopping a sortchange event


    Is it possible to stop the sortchange event?

    I want to implement my own sorting, which should trigger when clicked on a column header.

  2. Thank you for the quick reply, but I couldn't modify the class directly, since I need it with and without this functionality.

    I now create all columns of the grids with my sorting to
    Code:
    sortable: false
    and add an
    Code:
    'headerclick'
    listener to the created columns. But not to those who should be unsortable.

  3. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,064
    Answers
    110
    Vote Rating
    92
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      1  

    Default


    you can try the following override for column header click:

    Code:
    Ext.override(Ext.grid.column.Column, {
        onElClick: function(e, t) {
    
            var me = this,
            ownerHeaderCt = me.getOwnerHeaderCt();
    
            if (ownerHeaderCt && !ownerHeaderCt.ddLock) 
            {
                gridID = this.up('grid').id;  // you can get the grid's id here if you want to use it
                return false;  // return false to cancel click event on grid column's header element
            }
        }
    });

  4. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    Thank you for the quick reply, but I couldn't modify the class directly, since I need it with and without this functionality.

    I now create all columns of the grids with my sorting to
    Code:
    sortable: false
    and add an
    Code:
    'headerclick'
    listener to the created columns. But not to those who should be unsortable.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar