RadScheduler bound to sp not updating on rebind.

3 posts, 0 answers
  1. Michael Stapleton
    Michael Stapleton avatar
    2 posts
    Member since:
    Sep 2018

    Posted 16 Oct 2018 Link to this post

    I'm having trouble getting the RadCalendar to update the RadScheduler and vice versa.   I started with the standard demo template and changed the datasource of the scheduler to bind it to a stored procedure call.   The scheduler and calendar controls no longer update each other.   I have not added any Server side events besides the DataBound Event for RadScheduler in which i change appointment colors and attributes.  (Commenting out this code does not fix the issue).  In the asp page, I've only added some client side button click events.   Nothing changed with the navigation.   The rebind method does not seem to rebind the control. 

    Any idea why this might be happening? 

     

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    522 posts

    Posted 19 Oct 2018 Link to this post

    Hello Michael,

    For convenience and better visibility from the community, I am sharing the answer in your support ticket. 

    The client-side rebind() method is used only when WebService binding is used. When the SQL DataSource is used to bind the Scheduler, a postback is required. 

    That is why I would recommend using the server SelectionChanged event where you can call the .Rebind() server method of the RadScheduler.

    For convenience, I have attached a sample project implementing the suggested approach.

    protected void RadCalendar1_SelectionChanged(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e)
    {
        RadScheduler1.Rebind();
    }

    Regards,
    Peter Milchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Michael Stapleton
    Michael Stapleton avatar
    2 posts
    Member since:
    Sep 2018

    Posted 22 Oct 2018 Link to this post

    Came here to post this for everyone, you beat me to it!     

    Thanks, worked like a charm!   

Back to Top