The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
VNVignesh Natarajan Syncfusion Team November 11, 2020 04:38 AM UTC
Hi Liero,
Thanks for contacting Syncfusion support.
Query: “ would like to invoke those commands from code. How do I do that?”
Update and Cancel action in Grid can be accessed / invoked using EndEdit() and CloseEdit() method of Grid. EndEdit() method is used to save the changes in Grid. Similarly CloseEdit() method is used to cancel the edit operation. Refer our API documentation for your reference
Please get back to us if you have further queries.
Regards,
Vignesh Natarajan
LILieroNovember 11, 2020 02:16 PM UTC
Thanks.
How do I find out, whether the grid is currently in edit mode and whether there are some batch changes or no?
VNVignesh Natarajan Syncfusion Team November 12, 2020 09:23 AM UTC
Hi Liero,
Thanks for the update.
Query: “How do I find out, whether the grid is currently in edit mode and whether there are some batch changes or no?”
We have analyzed your query and we understand that you want to know whether the cell in Grid is in edit state. We suggest you to achieve your requirement using OnCellEdit and OnCellSave event of the Grid along with Boolean variable. OnCellEdit event will be triggered when cell goes into edit mode. OnCellSave event will be triggered when cell is saved. Enabling and disabling a Boolean variable inside these event, we can determine whether the grid is in edit state.
Similarly BatchChanges can be found using GetBatchChanges method of the Grid. Refer our API and UG documentation for your reference