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

How to change start time and resources

1 Answer 281 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 01 Apr 2014, 04:05 AM
Hi,

I am using the scheduler in Kendo Mobile, referencing the demo.

I set the initial parameters in the init view function and change the dataSource and use the date() function to change the date of the scheduler.
However, I would also like to change the startTime and resources so that more changes can be determined later.

Would you suggest how to change them?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Apr 2014, 06:18 AM
Hello Ralph,

Setting the start and end time should be done via the startTime and endTime configuration options. Do you want to set those options after the scheduler has been initialized? If yes you would need to destroy the scheduler first and then recreate it:

var scheduler = $("#scheduler").data("kendoScheduler");
var options = scheduler.options;
scheduler.destroy();
options.startTime = new Date("2014/3/4 10:00");
options.endTime = new Date("2014/3/4 29:00");
$("#scheduler").empty().kendoScheduler(options);

Regards,
Atanas Korchev
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
Ralph
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or