Hi
I am using infargistics 8.3 this problem starts after going to 8.3. pleas check it.
I want to set every owner's color specifically and i have used the following lines:
// For - loop Infragistics.Win.UltraWinSchedule.Owner owner = this.CalendarInfo.Owners["owner Key") physicianColor = Color.FromArgb("Some Specific Color"); owner.NonWorkingHourTimeSlotAppearance.BackColor = Color.WhiteSmoke; owner.WorkingHourTimeSlotAppearance.BackColor = physicianColor; owner.DayAppearance.BackColor = physicianColor; owner.HeaderAppearance.BackColor = physicianColor;
// End for-loop
these lines of code are not working.
There is a knowledge base article here which demonstrates the basic approach. Note that the article predates appointment grouping (a.k.a. appointment "owners") support, so to get a reference to the Owner, you would need to use the TimeSlotUIElement's GetContext method, passing in typeof(Owner).
Hi All
I have got specific requirement of changing the color of the timeslot based some condition.
My condition I need to give a different color to timeslots based on a doctor.
Let us say a doctor work in ICU from 9.00 AM to 11.AM, so I need a different color for 9.00 AM to 11.PM.
then he works in the emergency department from 11.AM to 1.00 PM so a different color as well here. By looking at this the front desk person can create appointment for a doctor based on his availability at different department.
I am currently using Infragistics 6.3.
I am attaching an image as well for your reference.
Thanks in advance.
The Owner class does not expose a DayHeaderAppearance, which is the name of the UltraCalendarLook property that controls the color of the header you highlighted in the screenshot. The Owner.HeaderAppearance property applies to the header that is displayed in which the owner' s name appears.
If you like you can submit a feature request for the addition of a DayHeaderAppearance property to the Owner class.