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

When deleting a record in the Grid, the user allows it to be deleted

No request for user confirmation when deleting a record in the data grid

2 Replies

RN Rahul Narayanasamy Syncfusion Team July 30, 2019 07:09 AM UTC

Hi Ebi Torabi, 
Greetings from Syncfusion. 
Query: When deleting a record in the Grid, the user allows it to be deleted 
We have validated your query and we suspect that you want to show delete confirm dialog(user wants to confirm the delete operation or cancel the delete operation) while deleting the record in the grid. You can achieve your requirement by using ShowDeleteConfirmDialog property. Please find the below code example and sample for your reference. 
[code example] 
@page "/" 
@using Syncfusion.EJ2.Blazor.Grids 
    <EjsGrid DataSource="@Orders" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })"> 
        <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Normal" ShowDeleteConfirmDialog="true"></GridEditSettings> 
If this is not your requirement or it does not meet your requirement, then could you please share more information regarding your requirement.  

ET ebi torabi July 30, 2019 09:04 AM UTC

Thank you so much for solving the problem

Live Chat Icon For mobile
Up arrow icon