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

Work week and week view

2 Answers 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Iron
Marco asked on 25 Aug 2014, 09:05 AM
Hi,

Is it possible to have two week views? One with 7 days, and one with 5 days?:

   views: [
                        {
                            type: "day", selected: true, minorTickCount: 4,
                            dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'ddd d-M')#</strong>")
                        },
                        {
                            type: "workWeek", minorTickCount: 4,workWeekEnd: 7,title:"Week",
                            dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'ddd d-M')#</strong>")
                        },
                        {
                            type: "workWeek", minorTickCount: 4, title: "Workweek",
                            dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'ddd d-M')#</strong>")
                        },
                        {
                            type: "agenda", selected: true, minorTickCount: 4,
                            dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'ddd d-M')#</strong>")
                        }
               ],

Only the view with title "Workweek" is shown.

Kind regards,

Marco






2 Answers, 1 is accepted

Sort by
0
Marco
Top achievements
Rank 1
Iron
answered on 26 Aug 2014, 08:06 AM
This answer can be closed. I just found out that there is a week and workweek type. The documentation isn't very clear:

views.type StringThe type of the view. The built-in views are: "day", "week", "month" and "agenda". 

Where is the workweek?
0
Georgi Krustev
Telerik team
answered on 27 Aug 2014, 07:09 AM
Hello Marco,

I updated the docs for avoid further confusions. The change will be live soon. Thanks for drawing our attention to this omission.

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