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
close icon

localization under Angular 2

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


3 Replies

RU Ragavee U S Syncfusion Team October 5, 2016 07:04 AM UTC

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. 



JN jnord October 6, 2016 10:05 AM UTC

Hi Ragavee,

it works. Thank you for the answer.

Regards

j.nord


RU Ragavee U S Syncfusion Team October 7, 2016 06:31 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon