我有ExtJS的網格checkcolumn,該聲明是這樣的:EXtJS grid CheckColumn,單擊列後如何執行函數/檢查其狀態?
// the check column is created using a custom plugin
sel_column = new Ext.grid.CheckColumn({
sortable: false,
header: 'STE<br />SEL',
dataIndex: 'sel',
width: field_w,
listeners:
{
"mousedown":
{
fn : function(e)
{
$.log("Sel cellclick" , e);
}
}
}
});
我想加上changfe一些聽衆的它stae,或點擊鼠標。 Finaly - 要行,其中我點擊此列的ID的 - 要存儲在文本字段
現在我可以理解如何捕捉單擊事件,我使用onmousedown事件,像這樣:
// the check column is created using a custom plugin
sel_column = new Ext.grid.CheckColumn({
sortable: false,
header: 'STE<br />SEL',
dataIndex: 'sel',
width: field_w,
onMouseDown: function(e)
{
$.log(e,"MouseDown");
}
});
但它觸發,當我點擊任一單元格,不僅checkboxed ...
請幫助我
寫在這裏的意見,如果你需要解決方案... –