5 Answers, 1 is accepted
0
Jean-Pascal van der Endt
Top achievements
Rank 1
answered on 31 May 2012, 09:03 AM
Hi Telerik,
Setting the first day of the week for the calendar/datepicker control would be useful for me as well. I know it was available in the RadControls, so I hope there is a way to set it, or that it will be added in a future version.
Please let us know.
Setting the first day of the week for the calendar/datepicker control would be useful for me as well. I know it was available in the RadControls, so I hope there is a way to set it, or that it will be added in a future version.
Please let us know.
0
Hello Jean,
The Kendo UI Calendar and DatePicker components depend on the current culture. You could configure them via the culture() method. For example you could set the first day of the week using the following code snippet:
the Telerik team
The Kendo UI Calendar and DatePicker components depend on the current culture. You could configure them via the culture() method. For example you could set the first day of the week using the following code snippet:
<
input
id
=
"datepicker"
/>
...
<
script
>
$(document).ready(function() {
kendo.culture().calendar.firstDay= 2
// create DatePicker from input HTML element
$("#datepicker").kendoDatePicker();
....
});
</
script
>
Kind regards,
Iliana Nikolovathe Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 28 Feb 2016, 09:51 AM
Hello Iliana
I wanted to add:
kendo.culture().calendar.firstDay = 2
to my typescript file. However I'm getting an error message. Please see attached screen shot.
0
Hello,
appologies for misleading you. The firstDay field is part of the days object - like this:
Regards,
Petyo
Telerik
appologies for misleading you. The firstDay field is part of the days object - like this:
kendo.culture().calendar.days.firstDay= 2
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Grünther
Top achievements
Rank 1
answered on 30 Jan 2017, 10:53 AM
kendo.culture().calendar.firstDay = 1;