您好我有一个jqgrid网格我在下面做。可以帮助我使用DataEvent类型来帮助捕获日期更改吗?
{
name: "MonthYear",
index: "MonthYear",
width: 70,
align: "center",
sorttype: "date",
editable: true,
editrules: {
required: true
},
editoptions: {
dataInit: function (e) {
Utility.customDatePicker(e);
},
dataEvents: [
{
**type: "changeDate",**
fn: function (e) {
// -- need to do some calculation on basis of Date change
}
}]
},
formatter: "date",
formatoptions: { srcformat: "M/Y", newformat: "M/Y" },
},
我做了以上但我无法捕获dateChange事件,因为我需要根据更改时捕获的日期进行一些计算。谢谢