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

Appointment move while grouping enabled

2 Answers 25 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Vadim
Top achievements
Rank 1
Vadim asked on 06 Aug 2013, 11:53 AM
Hello everyone,
I have enabled grouping in my radscheduler, so when I move appointment to another column I need to get it resource key. In RadScheduler1_AppointmentUpdate I have the same Resource key both for Appointment and ModifiedAppointment. I tried to add actual Resource key from get_targetSlot() as custom attribute for appointment, but it also unavailable on the server side. What is the correct way to pass actual resource key for moved  appointment?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 08 Aug 2013, 12:54 PM
Hi,

 
I have inspected the scenario and the ResourceType was returned correctly in the AppointmentUpdate event. Here is the code that I use:

protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
  {
      Response.Write(e.Appointment.Resources[0].Key+"----");
      Response.Write(e.ModifiedAppointment.Resources[0].Key);
  }

Please let me know if the your scenario is somehow different. 

Regards,
Plamen
Telerik
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 the blog feed now.
0
Vadim
Top achievements
Rank 1
answered on 09 Aug 2013, 02:59 PM
Thank you for your reply Plamen. Looks like that the cause of the problem was really old build from 2011. I just updated DLLs to the latest version and everything magically started to work. Sorry for disturbing and once again thank you.
Tags
Scheduler
Asked by
Vadim
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Vadim
Top achievements
Rank 1
Share this question
or