いくつかのチェックボックスが入っているjqxGridがあります。必要なのは、チェックボックスが変更されたときに発生するイベントを見つけることです。私が試してみました:
changed
cellbeginedit
cellendedit
cellvaluechanged
cellvaluechanging
。すべて無駄に。
セルが変更されたときに起動してイベントを発生させたくありません。この1つのチェックボックスだけです。
これをどのように達成できるかについてのアイデアはありますか?
以下のコードを含めました。
チェックボックスは「再証明書」行です
$("#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
編集:このタグは存在せず、1500担当者がいないため、jqWidgetの下でこれにタグを付けることはできません。申し訳ありませんが、これは混乱します。