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

How to update scheduler majortick

1 Answer 228 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 1
Johnny asked on 30 Oct 2013, 10:13 AM
Hi:

I'm trying to update the majortick during runtime
I have the following:

<script type='text/javascript'>


$("#doctors").change(function () {

var scheduler = $("#scheduler").data("kendoScheduler");

 scheduler.majorTick(60); //interval of 60 minutes
 
kendo.bind($("#scheduler"), scheduler);
$("#scheduler").data("kendoScheduler").refresh();

});

</script>

Somehow, the code is not updating the intervals as a show in the code.

I appreciate in advance

John

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 31 Oct 2013, 10:54 AM
Hi Johnny,

 
Basically there is no such "majorTick" method in the KendoUI scheduler API, however you can change that option in the following way:

var scheduler = $("#scheduler").data("kendoScheduler");
//set the majorTick option
scheduler.options.majorTick = 120;
//refresh current view to reflect the above change
scheduler.view(scheduler.view().name);

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