RadScheduler error on Rebind()

2 posts, 1 answers
  1. Mihai
    Mihai avatar
    16 posts
    Member since:
    Oct 2011

    Posted 01 Apr 2013 Link to this post



    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)


    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)
  2. Answer
    Plamen avatar
    3080 posts

    Posted 03 Apr 2013 Link to this post

    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,
    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.
Back to Top