I'm sure i messed this up somehow, but i can't figure out how at this point.
i had a schedule control with resources on it. they were colored different colors. it worked fine.
now i added databinding to add appointments to it. bound to custom business objects. now everything shows in a weird gray/black shade. see the example. if i remove databinding it works fine again (of course there's no appointments).
I can't get the appointment summary to show either. what am i doing wrong for that? it's there if i double click and edit an appointment the summary/description are there, so i know binding is correct, but it won't show on the appointment itself.
here's my databinding code. it's all done in code, nothing on the form itself.
EDIT to get the appintment summary to show, i had to handle the appointmentformatting event and change the forecolor of appointmentelement to black. i still have the weird color problem above.
i had a schedule control with resources on it. they were colored different colors. it worked fine.
now i added databinding to add appointments to it. bound to custom business objects. now everything shows in a weird gray/black shade. see the example. if i remove databinding it works fine again (of course there's no appointments).
I can't get the appointment summary to show either. what am i doing wrong for that? it's there if i double click and edit an appointment the summary/description are there, so i know binding is correct, but it won't show on the appointment itself.
here's my databinding code. it's all done in code, nothing on the form itself.
var appointmentMappingInfo = new AppointmentMappingInfo(); appointmentMappingInfo.BackgroundId = "ApptStatus"; appointmentMappingInfo.Description = "Description"; appointmentMappingInfo.End = "EndDate"; //appointmentMappingInfo.Location = "Location"; //appointmentMappingInfo.MasterEventId = "ParentID"; //appointmentMappingInfo.RecurrenceRule = "RecurrenceRule"; appointmentMappingInfo.ResourceId = "ProviderId"; //appointmentMappingInfo.Resources = "SchedulerAppointment"; appointmentMappingInfo.Start = "StartDate"; //appointmentMappingInfo.StatusId = "StatusID"; appointmentMappingInfo.Summary = "Subject"; schedulerBindingDataSource1.EventProvider.Mapping = appointmentMappingInfo; var resourceMappingInfo = new ResourceMappingInfo(); resourceMappingInfo.Id = "Id"; resourceMappingInfo.Name = "Name"; schedulerBindingDataSource1.ResourceProvider.Mapping = resourceMappingInfo; _bsAppts = SchedulerRepository.GetAppointments(); schedulerBindingDataSource1.ResourceProvider.DataSource = _opList; schedulerBindingDataSource1.EventProvider.DataSource = _bsAppts; schMain.DataSource = schedulerBindingDataSource1; _opList is a binding list of your Resource object. _bsAppts is a binding list of my business object appointments Thanks!
EDIT to get the appintment summary to show, i had to handle the appointmentformatting event and change the forecolor of appointmentelement to black. i still have the weird color problem above.