We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Event OnBatchSave

I want to use my own 1 button named "Ok" instead of the Update button available on the grid. How does it automatically call the "OnBatchSave" event when it clicks the "OnBatchSave" event to save changes in batch editing mode?

1 Reply

MS Monisha Saravanan Syncfusion Team April 21, 2023 07:36 AM UTC

Hi Duong,

Greetings from Syncfusion support.

Query: “I want to use my own 1 button named "Ok" instead of the Update button available on the grid. ”

We would like to inform that in DataGrid we have support to customize the inbuilt toolbar buttons. Kindly refer the below attached documentation for your reference. Here we have customized the default toolbar text. Similarly we suggest you to customize your toolbar button text as per you requirement.

Reference: https://blazor.syncfusion.com/documentation/datagrid/tool-bar#customize-toolbar-text

Additionally if you like to render an custom button then we would like to inform that we have EndEditAsync method in DataGrid which will update the changed records in DataGrid and also it will trigger OnBatchSave event as per your requirement.

Reference: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_EndEditAsync

Please let us know if you have any concerns or if you face any difficulties.



Live Chat Icon For mobile
Up arrow icon