Hi,
I have been experiencing some problems with binding appointments to resources.
I have some "Orders" that is just a Appointment and some resources thats Cars that have the appointments attached.
Im using a SchedulerBindingSource With this code:
But for some reason the appointments wont get binded to the "Cars" / Resources...
Anyone know how to do this?
I have been experiencing some problems with binding appointments to resources.
I have some "Orders" that is just a Appointment and some resources thats Cars that have the appointments attached.
Im using a SchedulerBindingSource With this code:
| SchedulerBindingDataSource schedulerBindingDataSource1 = new SchedulerBindingDataSource(); |
| AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo(); |
| appointmentMappingInfo.Start = "Start"; |
| appointmentMappingInfo.End = "End"; |
| appointmentMappingInfo.Summary = "Summary"; |
| appointmentMappingInfo.Description = "Description"; |
| appointmentMappingInfo.Location = "Location"; |
| appointmentMappingInfo.UniqueId = "Id"; |
| appointmentMappingInfo.BackgroundId = "BackGroundID"; |
| appointmentMappingInfo.StatusId = "StatusCarOn"; |
| appointmentMappingInfo.ResourceId = "Carid"; |
| appointmentMappingInfo.Resources = ""; |
| SchedulerMapping idMapping = appointmentMappingInfo.FindByDataSourceProperty("Id"); |
| idMapping.ConvertToDataSource = ConvertIdToDataSource; |
| idMapping.ConvertToScheduler = ConvertIdToScheduler; |
| SchedulerMapping idMapping2 = appointmentMappingInfo.FindByDataSourceProperty("Carid"); |
| idMapping2.ConvertToDataSource = ConvertIdToDataSourceForCars; |
| idMapping2.ConvertToScheduler = ConvertIdToScheduler; |
| schedulerBindingDataSource1.EventProvider.Mapping = appointmentMappingInfo; |
| schedulerBindingDataSource1.EventProvider.DataSource = _orderExtendScheduleItems; |
| ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo(); |
| resourceMappingInfo.Id = "Carid"; |
| resourceMappingInfo.Name = "Carname"; |
| SchedulerMapping ridMapping = resourceMappingInfo.FindBySchedulerProperty("Id"); |
| ridMapping.ConvertToDataSource = ConvertIdToDataSource2; |
| ridMapping.ConvertToScheduler = ConvertIdToScheduler; |
| schedulerBindingDataSource1.ResourceProvider.Mapping = resourceMappingInfo; |
| schedulerBindingDataSource1.ResourceProvider.DataSource = carList; |
| radScheduler1.DataSource = schedulerBindingDataSource1; |
But for some reason the appointments wont get binded to the "Cars" / Resources...
Anyone know how to do this?