Hi,
how can i set the igx-grid locale to "de" and Filter in the grid ?
My Values Formated like this 2019-03-19 13:54:59.523 how can i realize to Filter with German Formatings like contains 09.2019 ??
Thank you
ingo
i have found a Solution ;)
i have done it by doing these steps......
1. registerLocalData(localDE)
2. set grid.locale = "de"
3. own formatter to display german formating (not allready done by setting locale?)
is that the way ? Or can it be done easier?
Thanx
Hi Ingo,
Please see the Localization topic for how-to localize Ignite UI for Angular components.
registerLocaleDate that you used is an Angular thing, and is used only by the Angular framework itself internally., it does not affect Ignite UI components on the page. Though, once you have registered it, you should be able to format the date in de locale using the DatePipe:
<igx-column field="OrderDate" header="Order Date" [dataType]="'date'"> <ng-template igxCell let-cell="cell" let-val let-row> {{val | date}} </ng-template> </igx-column>
Please let me know if you gave further questions.
Hristo