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

RadScheduler error on Rebind()

1 Answer 81 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mihai
Top achievements
Rank 1
Mihai asked on 01 Apr 2013, 09:03 AM
Hello,

GIVEN:

1. Using ASP.NET AJAX 2013 Q1
2. RadScheduler contained in a RadAjaxPanel
3. Using model binding(setting the ItemType and SelectMethod properties of the RadScheduler)

ISSUE:

When trying to call the Rebind()  method of the RadScheduler in code behind( AjaxRequest[RadAjaxPanel], AppoimentDelete[RadScheduler]) i get the following error:
Data properties on data control 'RadSceduler_ID' such as DataSource, DataSourceID, and DataMember cannot be changed during the databinding phase of the control

I "fixed" it in the AjaxRequest event handler by calling the DataBind() method instead of Rebind() but it still doesn't work in the AppointmentDelete event handler(error above)

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 03 Apr 2013, 12:07 PM
Hello Mihai,

 
Yes, this is the expected behavior because you can not call the DataBind in that server event. Please have in mind that after the event RadScheduler will DataBound anyway. If your scenario is somehow different please elaborate a little bit why exactly are you trying to rebind the control there so we could be more helpful.

All the best,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Mihai
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or