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.

Locale ignored in grid datepicker.

Thread ID:

Created:

Platform:

Replies:

128749 Feb 9,2017 01:30 AM Angular 0
loading
Tags: ejGrid
Rykunov Alex
Asked On February 9, 2017 01:30 AM

Greetings.

I need to localize the datepickers in my grid to ru-RU culture. I use the editParams property on datepicker holding columns to do that. However, there is no result. Here's the grid:

<ej-grid id="Grid" [dataSource]="dataManager" [allowSorting]="true" [allowFiltering]="true"
    [allowSelection]="true" [selectionType]="single" [allowScrolling]="true"[selectionSettings]="{selectionType:[cell]}" 
    [editSettings]="{'allowEditing':'true', 'editMode':'batch', 'allowAdding':'true'}">
    <e-columns>
        <e-column field="startDate" headerTextAlign="center" editType="datepicker" width="150" format="{0:dd.MM.yyyy}" [editParams]="{'locale': 'ru-RU', buttonText: 'Сегодня'}" [allowFiltering]="false" headerText="Дата с"></e-column>
        <e-column field="endDate" headerTextAlign="center" editType="datepicker" width="150" format="{0:dd.MM.yyyy}" [editParams]="{'locale': 'ru-RU'}" [allowFiltering]="false" headerText="Дата по"></e-column>
        <e-column field="id" [visible]="false" [isPrimaryKey]="true"></e-column>
    </e-columns>
</ej-grid>

The fields that need to be localized are startDate and endDate fields. The buttonText property i tried for testing works perfectly, however, the locale itself (days and month names) dont get localized. Can you help me with this problem?

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.

;