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

    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,316
    Vote Rating
    486
    Answers
    704
    scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute

      0  

    Default

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

    Scott.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Vote Rating
    112
    Answers
    347
    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