【发布时间】:2012-12-10 23:35:26
【问题描述】:
我有一个 jqxGrid,里面有几个复选框。
我需要做的是找到一个在更改复选框时触发的事件。
我试过了:
changedcellbegineditcellendeditcellvaluechangedcellvaluechanging
。
一切都无济于事。
我不想在任何单元格更改时触发和事件,只是这个复选框。
关于如何实现这一点的任何想法?
我已经包含了下面的代码。
复选框是“重新认证”行
$("#ModulesGrid").jqxGrid({
width: 890,
height: 350,
theme: modulesTheme,
columnsresize: true,
source: dataAdapter,
pageable: true,
editable: true,
columns: [
{ text: 'Module Name', datafield: 'modulename', width: 100, editable: false },
{ text: 'Optional', datafield: 'Optional', columntype: 'checkbox', width: 100 },
{ text: 'Assigned', datafield: 'Assigned', width: 80 , columntype: 'checkbox'},
{ text: 'Pass', datafield: 'pass',cellsrenderer: radioRenderer,width: 50, editable: false },
{ text: 'NC', datafield: 'nc',cellsrenderer: radioRenderer,width: 50, editable: false },
{ text: 'Fail', datafield: 'fail',cellsrenderer: radioRenderer,width: 50, editable: false },
{ text: 'Re-Cert', datafield: 'recert', columntype: 'checkbox', width: 50, cellvaluechanged: function(event){alert(1);}},
{ text: 'Re-Cert Reason', datafield: 'reason', width: 100, editable: false},
{ text: 'Prior Cert', datafield: 'priorcert', width: 50, editable: false }
]
});
这里是 API 的链接:http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm
编辑:它不会让我在 jqWidget 下标记它,因为该标记不存在并且我没有 1500 个代表。抱歉,这会造成混淆。
【问题讨论】:
标签: javascript jquery jquery-plugins jqxgrid