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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid action confirmation message customize

Thread ID:

Created:

Updated:

Platform:

Replies:

130114 Apr 23,2017 06:35 AM UTC Apr 24,2017 09:13 AM UTC ASP.NET MVC 1
loading
Tags: Grid
MikeB
Asked On April 23, 2017 06:35 AM UTC

How to customize confirmation message in pop-up dialog?

Jayaprakash Kamaraj [Syncfusion]
Replied On 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> 
 

Sample: http://www.syncfusion.com/downloads/support/forum/130114/ze/MvcApplication661546771287 

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. 

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;