Work week and week view

3 posts, 0 answers
  1. Marco
    Marco avatar
    33 posts
    Member since:
    Jan 2014

    Posted 25 Aug 2014 Link to this post

    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. Marco
    Marco avatar
    33 posts
    Member since:
    Jan 2014

    Posted 26 Aug 2014 Link to this post

    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?
  3. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 27 Aug 2014 Link to this post

    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!
     
Back to Top