Hi,
Iām currently testing KendoUI for a future project and I have a little issue with the DatePicker. Let me explain:
Iām currently testing KendoUI for a future project and I have a little issue with the DatePicker. Let me explain:
- New KendoUI application with globalization;
- Add the fr-FR culture:
- Set the kendo culture in the layout:
<script type="text/javascript">
kendo.culture("fr-FR")
</script>
kendo.culture("fr-FR")
</script>
- Creating in the Index.cshtml a DatePicker.
When running the app and select a date, the DatePicker displays (for example) 16.10.2013. This value cannot be validated, the system expects ā16/10/2013ā. The culture of the calendar is OK (french labels everywhere), but the value which is displayed has a wrong format.
Otherwise, If I choose to set the culture of the DatePicker explicitly:
@(Html.Kendo().DatePickerFor(m=>m.D)
.Culture("fr-FR")
)
Then everything works like a charm.
Did I missed something?
Thank you,
Catalin
Otherwise, If I choose to set the culture of the DatePicker explicitly:
@(Html.Kendo().DatePickerFor(m=>m.D)
.Culture("fr-FR")
)
Then everything works like a charm.
Did I missed something?
Thank you,
Catalin