4

我有一个带有复选框模型的网格,我想在某些条件下禁用一些复选框。

  1. 不想使用渲染器覆盖 DOM 元素。
  2. 想做这样的事情......

    grid.getStore().load({          
      scope: this,          
      callback: function(records, operation, success) {            
        if (success) {              
          var sm = grid.getSelectionModel();              
          Ext.each(records, function(record) {                
            if (record.data.chkd) {
              var row = record.index;
              // console.log(record.index);                  
              sm.select(row, true);                  
              // HERE WANT TO DISABLE THE CHECKBOX FOR THE PARTICULAR RECORD
            }
          });              
        } else {              
          //alert(success);
          //console.log(operation.exception);
        }
      }
    });
    

在此先感谢您的帮助!!

4

0 回答 0