|
function complete(args) {
var gridObj = document.getElementById('Grid1').ej2_instances[0];
if (args.requestType === 'save') {
gridObj.setCellValue(10001, "CustomerID", "testvalue");
// 10001 - Specifies the PrimaryKey value of dataSource.
// CustomerID - Specifies the field name which you want to update.
// testvalue - To update new value for the particular cell.
}
} |
|
function complete(args) {
var gridObj = document.getElementById('Grid1').ej2_instances[0];
if (args.requestType === 'save') {
gridObj.setCellValue(args.data[args.primaryKey], "CustomerID", "testvalue");
// 10001 - Specifies the PrimaryKey value of dataSource.
// CustomerID - Specifies the field name which you want to update.
// testvalue - To update new value for the particular cell.
}
} |
Hey Thiyagu,
That's exactly what I was doing wrong, changing to the value and it works as expected.
Such a silly mistake, but I appreciate your help getting me on track again.
Thank you!!