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

Function to refresh Scheduler from external event creation form?

1 Answer 190 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
copatten
Top achievements
Rank 2
copatten asked on 16 Aug 2016, 05:04 PM

We have created our own event creation form external to the Scheduler control. When we click save on the form we would like the event to automatically appear on the scheduler, is there a javascript function to be able to add the event or refresh the scheduler? I have read that there is an observable data option in the scheduler, would this be the mechanism?  Is there any code examples of this being used?

Finally, would this work well with the high data volume query and the OData service? 

Many thanks.

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 18 Aug 2016, 08:19 AM
Hi Conor,

There are two possible approaches of inserting the event:
  • dataSource "pushCreate" - using this method the event will be inserted but will not be synced with the back end
  • dataSource "add" - using this approach the event will be synced with next sync request

Please check the example below:

$("#scheduler").getKendoScheduler()
  .dataSource
  .pushCreate({start: new Date(), end: new Date(), title: "Some title"})

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
copatten
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Share this question
or