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

Timeline Update issue

2 Answers 25 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ilya
Top achievements
Rank 1
Ilya asked on 29 May 2012, 03:35 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 29 May 2012, 06:31 PM
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.
0
Ilya
Top achievements
Rank 1
answered on 29 May 2012, 06:40 PM
Great, thanks for pointing me in the right direction.
Tags
Scheduler
Asked by
Ilya
Top achievements
Rank 1
Answers by
Peter
Telerik team
Ilya
Top achievements
Rank 1
Share this question
or