Timeline Update issue

3 posts, 1 answers
  1. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 29 May 2012 Link to this post

    I am using Resources in the Timeline view to display names of the doctors. When users drag-and-drop the appointments in the Timeline view and lets say move the appointment from Dr. John Doe (DocId: 10) to Dr. Jane Doe (DocId: 11) slot the doctor's ID does not update properly. In the radSchedule1_AppointmentUpdate event I do the following:

    Dim docid As Integer = e.ModifiedAppointment.Attributes.Item("DocId")

    However, the DocId value always remains the same (10 in this case). What could be wrong? Thanks
  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 May 2012 Link to this post

    Hello Ilya,

    It looks like you update the Attributes collection of the appointment, not its resources. Note that there is a difference between the two.

    I suggest you review the Binding to Generic List demo and track how resources are handled in the CopyInfo method and how that method is used to update the appointments.  

    Greetings, Peter
    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.
  3. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 29 May 2012 Link to this post

    Great, thanks for pointing me in the right direction.
Back to Top