JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › onCellUpdate › Reply To: onCellUpdate
January 2, 2022 at 9:48 am
#102728
admin
Keymaster
Hi James,
onCellUpdate is a property so in angular in app.component.ts it would be:
` onCellUpdate = function(cell, oldValue, newValue, confirm) {
oldValue = cell.value;
alert(cell.row.id + “/” + cell.column.dataField);
if (newValue === “test”) {
confirm(false);
}
else {
confirm(true);
}
}`
in the template, you will need to set the onCellUpdate grid property to point to the property in the app.component.ts.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/