Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Data Grid › onCellUpdate › Reply To: onCellUpdate
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/