[英]Extjs checkbox column: make difference between click on checkbox and the rest of the field
i have a grid with a checkboxcolumn, all works fine but i would like to take different action between clicking on the checkbox itself and clicking besides it in the same field. 我有一个带有checkboxcolumn的网格,一切正常,但是我想在单击复选框本身和在同一字段中单击复选框之间采取不同的操作。 Is this feasable in ExtJs ?
在ExtJs中可行吗? I work with version 3.3.1 but i guesss that an example from another version would get me started.
我使用的版本是3.3.1,但我猜想另一个版本的示例会让我入门。
var checkColumn = new Ext.grid.CheckColumn({
header: 'Checklist OK ?',
dataIndex: 'checklist_ok',
width: 20,
align: 'center'
});
cmDiverse = new Ext.grid.ColumnModel({
defaults: {
"sortable": true,
"menuDisabled": false,
"align": "right"
},
store: storeDiverse,
columns: [{
"id": "id",
"header": "id",
"hidden": true,
"dataIndex": "id",
"width": 20
},
checkColumn, ... checkColumn,...
gridDiverse = new Ext.ux.grid.livegrid.EditorGridPanel({
id: "gridDiverse",
enableDragDrop: false,
loadMask: true,
clicksToEdit: 1,
layout: 'anchor',
cm: cmDiverse,
....
不幸的是,您无法区分是在复选框内部还是外部单击,因为所有侦听器都在该列上,并且该复选框只是该列内部文本的格式,而不是实际元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.