listeners : { 'cellclick' : function(tfngrid, rowIndex, columnIndex, e) {//单击单元格事件 双击雷同celldblclick var record = tfngrid.getStore().getAt(rowIndex); var fieldName = tfngrid.getColumnModel() .getDataIndex(columnIndex); var data = record.get(fieldName); var name = record.get('name_'); var depId = record.get('orgid'); if (fieldName == 'counts' && data != 0) { //可在指定的条件下做相应的处理 } } // 'rowdblclick' : function() {//行双击事件 if (employBox.getSelected()) {//事先定义的复选框 var employBox = new Ext.grid.CheckboxSelectionModel({ singleSelect : 'true' }) var name = employBox.getSelected().data["name"]; } else { Ext.MessageBox.alert("操作提示", "请选择客户信息!"); } } }