Access Edit Grid Button Events

Hi,

I am writing an Edit Grid for blazor and I would like to know if it is possible to call the toolbar buttons from the @code area instead of using API's to handle the data changes. I didn't find the documentation for this action.

I want to hit Update and call a function in @code where it will handle the update model and then refresh the page. 

How can I reference "Update"?



1 Reply 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team March 22, 2022 10:02 AM UTC

Hi Francisco, 
 
Greetings from Syncfusion support. 
 
We suspect that you would like to programmatically trigger the update action instead of pressing the Update button in toolbar. If so, then we suggest you to call the EndEditAsync method of grid. 
 
You can use our inbuilt methods(StartEditAsync, EndEditAsync, CloseEditAsync, AddRecordAsync) to programmatically perform CRUD actions in Grid. 
 
Also OnToolbarClick event will be triggered when you press any grid toolbar button. 
 
Also we suggest you to refer the below documentation for event tracing during CRUD action, 
 
Please try the above suggestion and check this from your side and if we have misunderstood your requirement then kindly get back to us with more details to proceed further. 
 
Regards, 
Renjith R 


Marked as answer
Loader.
Up arrow icon