1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default Unanswered: disable checkboxModel

    Unanswered: disable checkboxModel


    Hi.,
    How to Make disable the check values in a checkBoxModel after checking the 'all check'.

    I mean after checking all check check box the checked values should disable.

  2. #2
    Sencha User metalinspired's Avatar
    Join Date
    Apr 2012
    Posts
    98
    Answers
    4
    Vote Rating
    4
    metalinspired is on a distinguished road

      0  

    Default


    add an listener to change event with simple loop that will traverse trough all your buttons in that group and disable them.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default


    Quote Originally Posted by metalinspired View Post
    add an listener to change event with simple loop that will traverse trough all your buttons in that group and disable them.
    Hi,
    I have done for the default all selection for the Model for 'show' event of the window containing the checkBoxModel .bellow is my code.
    Code:
    onShowSC : function() {
            var store = this.getShippingConditionStoreStore();
            max = store.getCount();
            var view = Ext.getCmp('sccheckgridId');
            var model = view.getSelectionModel();
            var allSelection = [];
            store.queryBy(function(record) {
                allSelection.push(record);
                
            });
            model.select(allSelection);
    But unable to do disable the model for all selection and and again enable by unchecking the 'All' check one.

  4. #4
    Sencha User metalinspired's Avatar
    Join Date
    Apr 2012
    Posts
    98
    Answers
    4
    Vote Rating
    4
    metalinspired is on a distinguished road

      0  

    Default


    How about this:

    Code:
    onShowSC : function() {
      // Get selection model
      var sm = Ext.getCmp('sccheckgridId').getSelectionModel();
      // Tell selection model to select all records and to suppress any select event
      sm.selectAll(true);
      // Lock selection
      sm.setLocked(true);
    }

Thread Participants: 1

Tags for this Thread

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