私はjqgridに取り組んでいます。その中にドロップダウンリストがある列があります。
ドロップダウンで変更イベントをバインドしています。しかし、それはトリガーされていません。dataEvents について言及する場所について混乱しました。
コード:
beforeProcessing: function (response) {
var $self = $(this);
$self.jqGrid("setColProp", "Country", {
formatter: "select",
edittype: "select",
editoptions: {
value: $.isPlainObject(response.Mapping) ? response.Mapping : []
},
dataEvents: [
{
type: 'change',
fn: function (e) {
alert("I am fired by the key press event of text box inside jqgrid");
}
}
]
});
},
エラーは発生していませんが、イベントはトリガーされません。助けてください 。