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.

localization under Angular 2

Thread ID:

Created:

Updated:

Platform:

Replies:

126259 Oct 4,2016 11:24 AM Oct 7,2016 02:31 AM JavaScript 3
loading
Tags: ejGrid
j.nord
Asked On October 4, 2016 11:24 AM

Hi,

we want Change the localization in Angular 2:

Index.html:

<script src="~/lib/js/ej/ej.culture.de-DE.min.js"></script>

       

<ej-grid #myGrid" [locale]="de-DE" [allowPaging]="true" ....


<e-column field="datum" headerText="Datum" width="40" format="{0:dd.MM.yyyy}"></e-column>


the cultur script is loading but the property "locale" is not working.


Regards

j.nord


Ragavee U S [Syncfusion]
Replied On October 5, 2016 03:04 AM

Hi Jürgen, 

Thanks for your interest in Syncfusion products. 

We have analyzed the reported query. The cause of the reported issue is that you have defined the locale property of the Grid within square braces which is incorrect way of defining. We need to define the Boolean/array type properties only within the square braces. 

So please modify your code as in the below code example. 


<ej-grid [allowPaging]="true" [allowSorting]="true" locale="de-DE" [dataSource]="gridData" > 


We have prepared a sample which can be downloaded from the below location. 


Regards, 
Ragavee U S. 


j.nord
Replied On October 6, 2016 06:05 AM

Hi Ragavee,

it works. Thank you for the answer.

Regards

j.nord

Ragavee U S [Syncfusion]
Replied On October 7, 2016 02:31 AM

Hi Jürgen, 
  
Thanks for your update. 
 
We are happy that your issue is resolved. 
  
Regards, 
Ragavee U S. 


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.

;