JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › grid very simple editing example › Reply To: grid very simple editing example
August 16, 2023 at 6:22 am
#108552
svetoslav_borislavov
Participant
Hi,
To capture the change of a cell, you can use the onCellUpdate callback.
It accepts the following parameters:
(cells: Smart.Grid.Cell[], oldValues: any[], values: any[], confirm: {(commit: boolean): void})
This function is useful if you want to make Ajax call to a server to validate the cell changes.
If the changes are validated, invoke the confirm function.
Here is an example: https://codepen.io/svetoslavb04/pen/MWZgbZY
I hope this helps!
Best Regards,
Svetoslav Borislavov
Smart UI Team
https://www.htmlelements.com/