Hi,
I am using a custom Form instead of the default Appointment form. My Custom form has control(uSetColor) to select Color. Which when i select i want that particular appointment to be set with the Appointment bar color as what is selected in uSetColor control.
Have uploaded the snap shot.
Thanks,
Zalak
Hello Zalak,
Thank you for contacting Infragistics Developer Support.
Each Infragistics Appointment has a “BarColor” property you could use in order to set the color of the appointment bar. You could use the following line to do that:
customApp.BarColor = uSetColor.Color;
Please let me know if you have any additional questions.
Hi Dimitar,
This doesn't work when using a custom appointment window. I have called my own scheduling form on the CalendarInfo_BeforeDisplayAppointmentDialog event and then set the properties of the current appointment after show. Everything else (Location, Subject etc) works fine, except the color.
I've tried
e.Appointment.BarColor = Color.Blue;
e.Appointment.Appearance.BackColor = Color.Blue;
still no luck.
Please let me know if there is anything else that i can try.
Karthik
This does not work for me.
Thanks.
Hi Zalak and Karthik,
Thank you for the update.
The BarColor property not working seems really strange to me. I have created a sample with a simple custom appointment dialog, where the user can set the subject, start date, end date and the bar color. Setting the bar color of new appointments and editing it for existing ones works fine in it. I have attached my sample, please take a look at it and let me know if I am missing something.
I am looking forward to your reply.
Hi.
Did my sample helped you solve your issue? Let me know if you need any further assistance.
Thank you for using Infragistics.