Hi!
I’ve got a on cellendedit function. Inside the function, theres a confirm
$("#jqxGrid").on('cellendedit', function (event)
{
// event arguments.
var args = event.args;
// column data field.
var dataField = event.args.datafield;
// row's bound index.
var rowBoundIndex = event.args.rowindex;
// cell value
var value = args.value;
// cell old value.
var oldvalue = args.oldvalue;
// row's data.
var rowData = args.row;
if (confirm('are you sure that you want to change the old value "'+oldvalue+'" to "'+value+'"?')) {
Change value....
} else {
Keep old value inside cell, cancel edit.
}
}
How do i keep the old value inside the cell if the user press “cancel”?