How to Refresh scheduler after success the save

6 posts, 1 answers
  1. CW
    CW avatar
    12 posts
    Member since:
    Nov 2012

    Posted 15 Aug 2013 Link to this post

    How to  Refresh scheduler after success the save. i need to refresh the scheduler after success the save.
    i used save handler to call the data source read. but it will call before save the data in data base.
  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 15 Aug 2013 Link to this post

    Hello CW,

    Although, the scheduler will automatically update its UI after a CUD operation you may manually force an DataSource re-population by calling its read method from within the sync event.

    Regards,
    Rosen
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. CW
    CW avatar
    12 posts
    Member since:
    Nov 2012

    Posted 16 Aug 2013 Link to this post

    hi Rosen,

    thanks for the reply.
    can u please give me a further explain. haw can i call the sync. i tried to add this property but couldn't find only have AutoSync.
    its really appreciate if u could explain me  with a sample. thanks.     
  4. Answer
    Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 19 Aug 2013 Link to this post

    Hi CW,

    The mentioned events are DataSource events not Scheduler's. Here is a snippet of how the suggested code should look like:

    $("#scheduler").kendoScheduler({ 
      timezone: "Etc/UTC",
      dataSource: {
        sync: function() {
          this.read();
        },   
        transport: {
          //..
        },
        schema: {
           //...
        }
      
    });

    Regards,
    Rosen
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Chase
    Chase avatar
    3 posts
    Member since:
    Apr 2014

    Posted 07 Apr 2015 in reply to Rosen Link to this post

    Is there a way to do this using the MVC wrapper?
  6. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 08 Apr 2015 Link to this post

    Hi Chase,

    Yes it is possible. You should use the Sync wrapper method to attach the event.

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top