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.
Unfortunately, activation email could not send to your email. Please try again.

Disable globalization

Thread ID:

Created:

Updated:

Platform:

Replies:

127132 Oct 27,2016 12:26 PM Oct 28,2016 05:15 AM ASP.NET MVC 1
loading
Tags: Grid
Art
Asked On October 27, 2016 12:26 PM

Is there an easy way to disable globalization support on-demand in ASP.NET MVC controls? 
We develop applications for internal users and they all are in the same location geographically. 

Mohammed Farook J [Syncfusion]
Replied On October 28, 2016 05:15 AM

Hi Artem, 
 
Thanks for contacting Syncfusion Support. 
 
In Normally Syncfusion ASP.Net MVC controls working by “en-US” culture as default  globalization is not disable. But  if you want to change to specific culture through locale property. For example: 
 
    @(Html.EJ().Grid<OrdersView>("Localization") 
        .Datasource((IEnumerable<object>)ViewBag.datasource) 
        .AllowGrouping() 
        .AllowPaging() 
        .Locale("de-DE") 
        .GroupSettings(group=>group.EnableDropAreaAnimation(false)) 
        .Columns(col => 
        { 
            col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add(); 
            col.Field("CustomerID").HeaderText("Customer ID").Width(90).Add(); 
            col.Field("EmployeeID").HeaderText("Employee ID").TextAlign(TextAlign.Right).Width(80).Add(); 
            col.Field("Freight").HeaderText("Freight").TextAlign(TextAlign.Right).Width(75).Format("{0:C}").Add(); 
            col.Field("ShipCity").HeaderText("Ship City").Width(90).Add(); 
        }) 
        ) 
 
 
Note : we need to include the script reference in your sample  based on your culture. 
 
 
<script src="@Url.Content("~/Scripts/cultures/ej.culture.de-DE.min.js")"></script>
    <script src="@Url.Content("~/Scripts/cultures/ej.culture.es-ES.min.js")"></script>
 
    
 
 
For your reference, Please find the online demo and UG documentation.  
 
 
 
 
 
Regards, 
J.Mohammed Farook 


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.

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.

;