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
    9,197
    Vote Rating
    482
    Answers
    690
    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
    Vote Rating
    115
    Answers
    346
    vietits is a splendid one to behold vietits is a splendid one to behold vietits is a splendid one to behold vietits is a splendid one to behold vietits is a splendid one to behold vietits is a splendid one to behold

      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