Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 如何仅在单击复选框时选择记录,而不使用复选框选择模型在任何单元格上选择记录_Extjs - Fatal编程技术网

Extjs 如何仅在单击复选框时选择记录,而不使用复选框选择模型在任何单元格上选择记录

Extjs 如何仅在单击复选框时选择记录,而不使用复选框选择模型在任何单元格上选择记录,extjs,Extjs,checkOnly:true属性不适用于checkboxselection模型。 有没有办法解决这个问题 我尝试在单击前创建一个侦听器。但是它阻止了网格中的其他侦听器 beforecellclick : function(grid, td, cellIndex, record, tr, rowIndex,e,eOpts) { if (cellIndex !== 0) { return false; } } 我希望只在复选框单击时选择记录,而不在

checkOnly:true
属性不适用于
checkboxselection
模型。 有没有办法解决这个问题

我尝试在单击前创建一个
侦听器。但是它阻止了网格中的其他侦听器

beforecellclick : function(grid, td, cellIndex, record, tr, rowIndex,e,eOpts)
 {                  

 if (cellIndex !== 0) 
{
   return false;
}
}

我希望只在复选框单击时选择记录,而不在其他单元格单击时选择记录。

请提供更多工作代码!var checkBoxSelectionModel=Ext.create('Ext.selection.CheckboxModel',{mode:'SIMPLE',checkOnly:true,});