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

RadScheduler bound to sp not updating on rebind.

2 Answers 210 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 16 Oct 2018, 02:48 PM

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 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 19 Oct 2018, 10:26 AM
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.
0
n/a
Top achievements
Rank 1
answered on 22 Oct 2018, 12:39 PM

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

Thanks, worked like a charm!   

Tags
Scheduler
Asked by
n/a
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
n/a
Top achievements
Rank 1
Share this question
or