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

Disable globalization

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. 

1 Reply

MF Mohammed Farook J Syncfusion Team October 28, 2016 09:15 AM UTC

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 


Loader.
Live Chat Icon For mobile
Up arrow icon