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

Grid action confirmation message customize

How to customize confirmation message in pop-up dialog?

1 Reply

JK Jayaprakash Kamaraj Syncfusion Team April 24, 2017 09:13 AM UTC

Hi Michal, 

Thank you for contacting Syncfusion support. 

We suspect that  you want to change the locale text for confirmation dialog. So, we suggest you to change the confirmation dialog text using below code example. 
 
https://help.syncfusion.com/aspnetmvc/grid/localization 
 
 
@(Html.EJ().Grid<object>("Grid") 
  .Datasource((IEnumerable<object>)ViewBag.data) 
            .AllowPaging() 
        .Locale("en-US") 
 
.. 
 
        .Columns(col => 
        { 
 
            col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add(); 
 
            .. 
 
 
            col.Field("ShipCity").HeaderText("Ship City").Width(80).Add(); 
 
        }) 
 
) 
<script type="text/javascript"> 
     
    ej.Grid.Locale["en-US"]["BatchSaveConfirm"] = " changed Text"; // here you change your text instead of "Are you sure you want to save changes?" 
    ej.Grid.Locale["en-US"]["BatchSaveLostChanges"] = " changed Text"; // here you change your text instead of "Unsaved changes will be lost. Are you sure you want to continue?" 
    ej.Grid.Locale["en-US"]["CancelEdit"] = " changed Text"; // here you change your text instead of "Are you sure you want to Cancel the changes?" 
 
</script> 
 


We have uploaded the predefined language packs for some commonly used cultures in the below GitHub location and refer to it for the corresponding culture. The culture file has localized texts for all the Syncfusion controls.

https://github.com/syncfusion/ej-global 

Regards, 

Jayaprakash K. 

 


To post a reply.
Loader.
Live Chat Icon For mobile
Up arrow icon