1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    SharmilaUmasankar is on a distinguished road

      0  

    Default Unanswered: Disabling the some checkboxselectionmodel based on the condition

    Unanswered: Disabling the some checkboxselectionmodel based on the condition


    Hi

    Am trying to disable some checkboxselection model inserted in grid .I have tried with the beforerowselect listener of the checkboxselection .
    Code:
        var checkbox= new Ext.grid.CheckboxSelectionModel({
                    listeners: {
                    "beforerowselect" : function (sm, rowIndex, keep, rec) {
                    var id = parseInt(rec.id);
                     if (id=='24'){
                     return false;
                    }
                    }
                    }
                    });
                    coumns1.push(checkbox);
    This listener is not triggered when the row is selected.Is there anyway to disable the checkboxselection model based on some criteria?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This may help: (post #4)
    http://www.sencha.com/forum/showthread.php?237641/

    Scott.

  3. #3
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Which Ext version are you using? With Ext 4.1.1, Ext.selection.CheckboxModel does not fire 'beforerowselect' event but instead it fires 'beforeselect' event.

Thread Participants: 2

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..."