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

Set Options for Specific Views

2 Answers 174 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 09 May 2016, 05:03 PM

Hello,

I currently have a scheduler that contains three custom timeline views, each with a different number of days, major tick, and minor tick count. I want to dynamically change the tick values, but only for one view at a time. I am aware of the scheduler.setOptions method, however that will apply the update across all views. When I try scheduler.view().setOptions, the changes made will undo when I refresh the view. Is there any way to change the options for a custom view? Thanks!

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 10 May 2016, 08:20 AM
Hello Derek,

You can modify the options of given view after the Scheduler initialization by accessing the "views" collection:

var scheduler = $("#scheduler").getKendoScheduler();
//modify the desired view options:
scheduler.views["workWeek"].minorTickCount = 4;
//refresh the view:
scheduler.view(scheduler.view().name);

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Derek
Top achievements
Rank 1
answered on 10 May 2016, 01:24 PM
This worked perfectly. Thanks!
Tags
Scheduler
Asked by
Derek
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Derek
Top achievements
Rank 1
Share this question
or