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

setting default view via MVVM

1 Answer 101 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 11 Sep 2015, 10:42 PM

Hello,

I was wondering if there is a way to set the default view via MVVM similar to how you set it in jquery init way?

 

So basically, how you do it via jquery init:

$("#scheduler").kendoScheduler({

     views: ["day",{ type: "workWeek", selected: true },"week","month"

});

 How would you do this in MVVM?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 15 Sep 2015, 08:26 AM
Hi George,

Please note that you can put the same configuration in the MVVM "data-views" attribute as well:

<div data-role="scheduler"
    data-views="['day', {type: 'month', selected: true}]"
    data-bind="source: tasks,

Regards,
Vladimir Iliev
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
Tony
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or