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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change the locale of the grid validation

Thread ID:





120100 Aug 31,2015 09:14 AM UTC Sep 1,2015 10:04 AM UTC ASP.NET MVC 1
Tags: Grid
Asked On August 31, 2015 09:14 AM UTC

Hello there. I have the following requirement: enable italian localized validation messages on grid component. Following the guide here:


I've been able to enable validation for my grid, while adding or editing a record. Now I want to localize all the validation messages in italian. I thought that I would need to set the correct grid locale, so, following the guide here:


I added this to my grid:


and I also added the following reference in _Layout.cshtml:

<script src="@Url.Content("~/Scripts/globalize/cultures/globalize.culture.it-IT.min.js")"></script>

This correctly changed the localization (the currency unit is now € instead of $) but the validation messages are still in english. The only approach which has been successful so far was to manually edit the validation messages icluded in "jquery.validate.min.js", but I doubt that it's the best way to achieve my requirement. What's the best way to solve this issue? Thanks.

Isuriya Rajan [Syncfusion]
Replied On September 1, 2015 10:04 AM UTC

Hi Carlo,

Thanks for using the Syncfusion products.

We can provide the localization support for a validation message based in any language. We have to use localization script file in the Layout page for each language.


  <meta charset="utf-8" />

    <meta name="viewport" content="width=device-width" />


    <link rel='nofollow' href="/Content/ej.widgets.core.min.css" rel="stylesheet" />

    <link rel='nofollow' href="/Content/ej.theme.min.css" rel="stylesheet" />

    <link rel='nofollow' href="/Content/Site.css" rel="stylesheet" />

    <script src="/Scripts/jquery-1.10.2.min.js" ></script>

    <script src="/Scripts/jquery.easing-1.3.js"></script> 

    <script src="/Scripts/jquery.globalize.min.js" ></script>

    <script src="/Scripts/jsrender.min.js" ></script>

         // Validation script file

    <script src="~/Scripts/jquery.validate.min.js"></script>

    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

    <script src="/Scripts/globalize.culture.de-DE.min.js"></script>

    <script src="/Scripts/globalize.culture.es-ES.min.js"></script>

    <script src="~/Scripts/globalize.culture.it-IT.min.js"></script 

         // Italian Locale script file

    <script src="~/Scripts/messages_it.js"></script>

    <script src="/Scripts/ej.web.all.min.js"></script>

    <script src="/Scripts/ej.unobtrusive.min.js"></script>


We can set validation rule by using ValidationRules property for specific columns.


      // Locale language


        .Columns(col =>

        {     . . . . . . .. 

            // Validation rules

            col.Field("ShipCity").HeaderText("Ship City").ValidationRules(v => v.AddRule("required", true).AddRule("minlength", 3)).Width(90).Add();

               . . . . . . . . .


Please refer to the following link for other languages localization reference,


Download the sample from the following location:


Please try the above sample and let us know if it helps. If we misunderstood your query, please provide clear information regarding your requirements. It will help to provide a prompt solution.


Isuriya R


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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