- Home
- Forum
- ASP.NET Core - EJ 2
- Grid locale not applied to datepicker control column?
Grid locale not applied to datepicker control column?
I set my grid to hr-HR locale but when open datepicker control in the editor, there is not hr-HR locale for it.

How to set the locale for the grid datepicker edit control?
Thanks!
Bernard.
SIGN IN To post a reply.
5 Replies
TS
Thavasianand Sankaranarayanan
Syncfusion Team
July 22, 2019 07:25 AM UTC
Hi Bernard,
Thanks for contacting Syncfusion support.
we have validated your requirement. You can set the locale for the datepicker control by using the editParams.
Please find the below code snippet and documentation link for more information.
|
@{
var editParams = new { @params = new { locale = "hr-HR" } };
}
<e-grid-column field="OrderDate" headerText="Order Date" editType="datepickeredit" edit=editParams format="yMd" width="170"></e-grid-column> |
Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/edit/?no-cache=1#cell-edit-type-and-its-params
Please get back to us, if you need further assistance.
Regards,
Thavasianand S.
BJ
Bernard Jurlina
July 22, 2019 06:15 PM UTC
Hi S,



and thanks for the answer. This is what I have in my _Layout.cshtml file
and when I put the editParams like you said
I get this error:
Thanks!
B.
PS
Pavithra Subramaniyam
Syncfusion Team
July 24, 2019 01:20 PM UTC
Hi Bernard,
Thanks for your update and sharing the details.
We could see that you have already applied locale using setCulture. So you do not need to use the previous update(include the locale property for the datepicker through edit Params). You just need to include the timeZonesNames.json into the files as in the below code snippet to resolve the issue.
Please get back to us, if you need further assistance.
Regards,
Pavithra S.
BJ
Bernard Jurlina
July 25, 2019 05:14 PM UTC
Hi Pavithra,
yes, thank you. Everything is working fine now.
Regards,
Bernard.
TS
Thavasianand Sankaranarayanan
Syncfusion Team
July 26, 2019 06:02 AM UTC
Hi Bernard,
Thanks for your update.
We are happy that the problem has been resolved at your end.
Regards,
Thavasianand S.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
BJ Bernard Jurlina
- Jul 21, 2019 02:06 PM UTC
- Jul 26, 2019 06:02 AM UTC