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

Kendo Scheduler Creating event in javascript

1 Answer 222 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lucas
Top achievements
Rank 1
Lucas asked on 09 Apr 2014, 03:16 AM
In the old telerik:RadScheduler control you could use insertAppointment() to dynamically insert a new appointment without any interaction from the user.

In the Kendo Scheduler, there is a method called 'addEvent' but it pops up the editing dialogue.
Is there a way to add a new event without going through the dance of the edit popup?

My first thought was to hack the 'OnEdit' event to look for some magic property on my new event and cancel the popup and just call save. Unfortunatly this doesn't seem to be a viable option as e.preventDefault() doesn't seem to work when used in an edit event handler.

any thoughts?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 Apr 2014, 12:08 PM
Hello Lucas,

You can add a SchedulerEvent instance (an event for short) directly to the datasource using its API. For instance, you can use the add method. For more information how to get the datasource instance of the scheduler check this help topic.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Lucas
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or