Function to refresh Scheduler from external event creation form?

2 posts, 0 answers
  1. copatten
    copatten avatar
    3 posts
    Member since:
    Dec 2014

    Posted 16 Aug 2016 Link to this post

    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.


  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 18 Aug 2016 Link to this post

    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:

      .pushCreate({start: new Date(), end: new Date(), title: "Some title"})

    Vladimir Iliev
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top