如何在 onEditingStart 上获取列值:function(e)
how to get column value on onEditingStart: function(e)
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() 函数并提醒该值(但这不起作用)我正在使用默认的 devexpress 编辑模式 link 按钮 i希望 ORDER_ID 和 ID 存储在变量中,然后使用默认的 devexpress 编辑模式 link 按钮
在 update() 函数中提醒
onEditingStart: function(e) {
btnid = e.data.ORDER_ID + "_" + e.data.ID;
update(btnid);
logEvent("EditingStart");
}
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() 函数并提醒该值(但这不起作用)我正在使用默认的 devexpress 编辑模式 link 按钮 i希望 ORDER_ID 和 ID 存储在变量中,然后使用默认的 devexpress 编辑模式 link 按钮
在 update() 函数中提醒onEditingStart: function(e) {
btnid = e.data.ORDER_ID + "_" + e.data.ID;
update(btnid);
logEvent("EditingStart");
}