<ej-grid id="Grid"
[dataSource]="syncJobs"
[allowSorting]="true"
[allowSelection]="true"
[allowPaging]="true"
[selectionType]="single"
[allowTextWrap]="true"
[allowResizing]="true"
[editSettings]="{'allowEditing':'true', 'editMode':'batch', 'showConfirmDialog':false}"
(cellSave)="saveRecord($event)">
<e-columns>
<e-column field="id" [visible]="false" [isPrimaryKey]="true"></e-column>
<e-column field="date" headerTextAlign="center" editType="datepicker" [width]="80" format="{0:dd.MM.yyyy}" [editParams]="{'locale': 'ru-RU', buttonText: 'Сегодня'}" [allowFiltering]="false" headerText="Date"></e-column>
<e-column field="creationDate" headerTextAlign="center" editType="datepicker" width="80" format="{0:dd.MM.yyyy}" [editParams]="{locale: 'ru-RU', buttonText: 'Сегодня'}" [allowFiltering]="false" headerText="Creation Date"></e-column>
</e-columns>
</ej-grid>
I need these two datepickers to be the right (Russian) locale. ButtonText works perfectly, but the locale wont.
I did refer the ru locale script, that I've downloaded from github and put in the folder. Here's the reference in the angular-cli.json (yes, this is an angular-cli project)
"scripts": [
"./../node_modules/jquery/dist/jquery.min.js",
"./../node_modules/jsrender/jsrender.min.js",
"./../node_modules/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js",
"./../node_modules/syncfusion-ej-global/i18n/ej.culture.de-DE.js"
],
Can you help me with this?
@Grid
<div>
<ej-grid [allowPaging]="true" [dataSource]="gridData" [allowGrouping]="true" [toolbarSettings]="toolbarItems" [editSettings]="editSettings" >
<e-columns>
. . .
<e-column field="OrderDate" headerText="sds" [editParams]="{'locale': 'ru-RU', 'buttonText': 'Сегодня'}" editType="datepicker" format="{0:dd.MM.yyyy}"></e-column>
. . .
</e-columns>
</ej-grid>
</div>
@index.html page
<script src="deps/js/jquery-1.11.3.min.js"></script>
<script src="deps/js/jquery.easing.1.3.min.js"></script>
<script src="deps/js/jsrender.min.js"></script>
<script src="deps/js/jsondata.min.js"></script>
<script type="text/javascript" src="//cdn.syncfusion.com/15.1.0.33/js/web/ej.web.all.js"></script>
<script src="deps/js/cultures/ej.culture.de-DE.min.js"></script>
<script src="deps/js/cultures/ej.culture.ru-RU.min.js"></script>
<script src="deps/js/ej.angular2.min.js"></script> |