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,084
    Answers
    112
    Vote Rating
    95
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi