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

Setting Week to start on different days

1 Answer 383 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 26 Jun 2015, 12:54 PM

Hi

Is it possible to set the week start day to a different day (e.g. it seems to be set as Sunday, we are looking to also have Monday as start - depending on configuration)

We did try to use working week - Monday to Sunday but seems we cant set the end day as Sunday) - eg with code like

                      showWorkDays: true,  workWeekStart:1,  workWeekEnd:0, 

http://dojo.telerik.com/OHAsO

Thanks

Chris

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 29 Jun 2015, 08:15 AM
Hello,

In order to set the first day of the week, you have to use the following code before the gantt is initialized:
kendo.culture().calendar.firstDay = 1;

Here's the updated dojo sample:
http://dojo.telerik.com/OHAsO/2

Regards,
Bozhidar
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Chris
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or