This is a migrated thread and some comments may be shown as answers.

Setting first day of week

12 Answers 785 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Igor
Top achievements
Rank 2
Igor asked on 29 Aug 2013, 03:55 PM
Hi, i am trying to set the first day of week to Monday:

This code:

 kendo.culture().calendar.firstDay = 1;

works well for DatePicker, but not for Scheduler (WeekView, MonthView).
Is there any workarounds?

12 Answers, 1 is accepted

Sort by
0
Igor
Top achievements
Rank 2
answered on 30 Aug 2013, 05:36 AM
In addition, how could i change date format of the days headr  in WeekView?
now it is looks like : Monday 8/30
and I need it to be: Monday, 30 Aug.

I referenced to this article : http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/globalization
But it seems like globalization is not yet fully supported for Schedule.
0
Igor
Top achievements
Rank 2
answered on 30 Aug 2013, 05:45 AM
Figured out the second question:

.DateHeaderTemplate("<strong>#=kendo.toString(date, 'M')#</strong>")
0
Accepted
Georgi Krustev
Telerik team
answered on 30 Aug 2013, 08:31 AM
Hello Igor,

 
The described problem is a known issue, which is already addressed. The fix will be included in the next internal build of Kendo UI. 

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 2
answered on 30 Aug 2013, 08:33 AM
Thanks!
0
Igor
Top achievements
Rank 2
answered on 23 Sep 2013, 04:05 AM
Hello Georgi,
could you please provide status update about the subject?
thanks!
0
Accepted
Rosen
Telerik team
answered on 23 Sep 2013, 08:37 AM
Hi Igor,

In the Q2 SP1 2013 version of KendoUI Scheduler widget  the first day of the week is read from the current culture.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 2
answered on 23 Sep 2013, 09:01 AM
Hi Rosen,
thank you, i will upgrade version shortly!

[Possible offtopic]: Is that also possible not to display "Sunday"?
I am referencing to http://demos.kendoui.com/web/scheduler/restriction.html , but i wonder if there is more elegant way to accomplish such thing?
0
Rosen
Telerik team
answered on 24 Sep 2013, 08:39 AM
Hi Igor,

I'm afraid that this is not supported by the built-in week view. However, you may achieve similar functionality by extending it similar as shown in this test page.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 2
answered on 24 Sep 2013, 09:05 AM
Hi Rosen
thank you for the good point!

0
Ana
Top achievements
Rank 1
answered on 26 Sep 2013, 10:01 AM
Hi folks,

I just wondering if this issue was fixed with the last build.

Rosen said "The first day of the week is read from the current culture."  but I don't see Monday as first day of the week using es-ES culture. 

thanks a lot,
0
Rosen
Telerik team
answered on 27 Sep 2013, 06:40 AM
Hi Nuria,

You should verify that you have correctly set the culture via the kendo.culture. Take a look at this test page, maybe I'm missing something obvious.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ana
Top achievements
Rank 1
answered on 27 Sep 2013, 07:26 AM
Hello Rosen,

The problem was I had no the last version of Javascript.

Thanks a lot!
Tags
Scheduler
Asked by
Igor
Top achievements
Rank 2
Answers by
Igor
Top achievements
Rank 2
Georgi Krustev
Telerik team
Rosen
Telerik team
Ana
Top achievements
Rank 1
Share this question
or