How to customize the delete confirmation dialog?

Hi.

I need to customize message in the delete confirmation dialog for grid. 
I have tried the sample for ASP NET MVC 
https://www.syncfusion.com/kb/5059/how-to-customize-the-delete-confirmation-dialog
but beforeOpen function isn't called. Is there some solution to customize  the delete confirmation dialog?

5 Replies

VA Venkatesh Ayothi Raman Syncfusion Team April 19, 2018 01:04 PM UTC

Hi Alexander, 

Thanks for using Syncfusion products. 

We need confirmation from your side whether you are using EJ1-MVC Grid(https://help.syncfusion.com/aspnetmvc/grid/getting-started) or EJ2-MVC Grid(https://ej2.syncfusion.com/16.1.32/aspnet/documentation/grid/getting-started-mvc.html?syntax=razor). It would be helpful for us to provide the appropriate solution. 

   
Regards, 
Venkatesh Ayothiraman. 



AL Alexander April 19, 2018 06:49 PM UTC

Actually I'm using EJ1. So, I was wrong when I created this request in the topic for EJ2.


VN Vignesh Natarajan Syncfusion Team April 20, 2018 12:23 PM UTC

Hi Alexander, 
 
As per your request we have prepared a sample to customize the delete confirm dialog using the below KB link 
 
 
The sample can be downloaded from below link 
 
 
You have mentioned that beforeOpen does not trigger.  From the KnowledgeBase 
$("#GridConfirmDialog") - // $(“#” + Grid ID + “ConfirmDialog”).Can you please ensure whether you have given the Grid ID correctly in the beforeOpen event and Grids create event?  
 
 
Regards,  
Vignesh Natarajan  
 



AL Alexander April 23, 2018 07:03 AM UTC

You are right. I have used a wrong Grid ID. Thank you very much!



TS Thavasianand Sankaranarayanan Syncfusion Team April 24, 2018 04:02 AM UTC

Hi Alexander, 
 
We are happy that the problem has been solved. 
 
Please get back to us if you need any further assistance.  
                          
Regards, 
Thavasianand S.                         


Loader.
Up arrow icon