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

Assigning Resources in Appointments

1 Answer 73 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 20 Sep 2010, 04:58 PM

When populating a schedule with appointments from my database, i want to have the appointments automatically have their resources (people) assigned.  How does this work?  Am I to assign the ResourceID of the AppointmentMappingInfo object the resource ID from my database?  I am using a business object for my appointments and populating the Resources collection of the RadScheduler manually with the resource name and ID.

What are the options of getting the appointments and resources to be related to each other so when the schedule is displayed, the resource drop down in the Edit Appointments Dialog is assigned the resource?  Also, when viewing the schedule in resource grouping mode, the resources are assigned to their appointments.  

Me.RadScheduler1.AppointmentFactory = New CustomAppointmentFactory

 

 

 

 

dataSource.EventProvider.AppointmentFactory = RadScheduler1.AppointmentFactory

 

 

 

Dim appointmentMappingInfo As New AppointmentMappingInfo()

 

appointmentMappingInfo.Start =

 

"Start"

 

 

 

 

appointmentMappingInfo.[End] = "End"

 

 

 

 

appointmentMappingInfo.Summary = "Subject"

 

 

 

 

appointmentMappingInfo.Description = "Description"

 

 

 

 

appointmentMappingInfo.Location = "Location"

 

 

 

 

appointmentMappingInfo.UniqueId = "Id"

 

 

 

 

appointmentMappingInfo.Exceptions = "Exceptions"

 

 

 

 

appointmentMappingInfo.ResourceId = "EmpID"

 

 

 

 

dataSource.EventProvider.Mapping = appointmentMappingInfo

 

 

 

' assign the generic List of MyAppointment as the EventProvider data source

 

 

 

 

dataSource.EventProvider.DataSource = appointments

 

 

 

Me.RadScheduler1.DataSource = dataSource

 

1 Answer, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 23 Sep 2010, 08:35 AM
Hello Mike,

Thank you for contacting us.

Please follow the available documentation concerning the topic of binding to business objects. If you still have some difficulties, feel free to contact us.

Regards,
Dobry Zranchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler and Reminder
Asked by
Mike
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or