function mydata() {
function logEvent(eventName) {
var el = $("#eventContainer .eventLog"),
value = el.text();
value += ((value && ", ") + eventName);
el.text(value);
}
function update(id) {
alert(id);
}
datagrid = $("#gridContainer").dxDataGrid({ // this is my code for datagrid
editing: {
mode: "row",
allowUpdating: true,
allowDeleting: true,
allowAdding: true
},
columns: [{
dataField: "ORDER_ID",
caption: "ORDER_ID",
sortOrder: 'desc',
fixed: true
}, {
dataField: "INV_NAME",
caption: "INV_NAME"
}, {
dataField: "ID",
caption: "ID",
fixed: true
}
]
onEditingStart: function(e) {
btnid = cellInfo.data.ORDER_ID + "_" + cellInfo.data.ID;
update(btnid);
logEvent("EditingStart");
}
});
}
点击btnid变量(全局变量)中的编辑按钮值应传入update()函数sholud警告值(但这不起作用)我使用默认的devexpress编辑模式链接按钮我希望ORDER_ID和ID存储在变量中,然后使用默认的devexpress编辑模式链接按钮
在update()函数中发出警报答案 0 :(得分:0)
onEditingStart: function(e) {
btnid = e.data.ORDER_ID + "_" + e.data.ID;
update(btnid);
logEvent("EditingStart");
}