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

Additional ways of reading/exporting Scheduler data

1 Answer 36 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tate
Top achievements
Rank 1
Tate asked on 01 Jul 2015, 03:13 PM

So, the basic premise of what I'm trying to accomplish is pulling data about the schedule of events from the Telerik Scheduler to use in other contexts. 

For example, let's say that I want to be able to call some MVC action and pass in all of the titles for the events that are scheduled for today.

Or, as another example, let's say that each event is assigned to an owner (this is an event for Employee1, this other event is for Employee2, etc.) I want to be able to display all of the dates for scheduled events for a certain employee in a custom HTML solution; something along the lines of what the Agenda view looks like, but NOT inside of the Scheduler view. 

Is there a way to pull the data from the Scheduler to do these things? One solution would be to just get the event data from the database and parse the info from there. However, this would obviously require a bunch of extra logic when it comes to recurring events and figuring out which days of the week in which months those recurring events would occur. I would like to avoid having to figure that stuff out since it the Telerik Scheduler is already handling that logic anyways. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 03 Jul 2015, 07:10 AM
Hi Tate,

It seems you are looking for a way to get the expanded events from the Scheduler - if this is the case than you can use the newly introduced "data" method of the Scheduler. 

var scheduler = $("#scheduler").getKendoScheduler();
 
scheduler.data().length;
//result: 5 --> evens expanded for currently visible date range
 
scheduler.dataSource.data().length;
//result: 55 --> all events

Regards,
Vladimir Iliev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Tate
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or