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

How to Programmatically Detect Resource Group

1 Answer 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 10 Apr 2012, 03:08 PM

Using the Telerik demo Scheduler / Resource Availability on http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx, I am trying to figure out how to detect the group in which an appointment is a member. This demo has 2 groups:

  • Meeting room 101
  • Meeting room 201

If I take the existing appointment labeled Security overview meeting and drag it from group 201 and drop it into group 101, how do I programmatically detect that this appointment is now in group 101? I would like to be able to detect this within the scheduler's AppointmentUpdate event, I am currently trying to use e.Appointment.Resources[0].Key to extract the new group value, but this always returns the old group value (201), instead of the new group value (101).

How do I accomplish this?

Thank you,
Steven

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 10 Apr 2012, 03:39 PM
Hi Steven,

You should use e.ModifiedAppointment if you want to retrieve information in AppointmentUpdate about the changes you have made.

All the best,
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.
Tags
Scheduler
Asked by
Brian
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or