This question is locked. New answers and comments are not allowed.
I'm using <telerikInput:RadCalendar> with All Day option, in which I am able to set the background color dynamically for all appointments within the time slots, but I cannot able to set the background color dynamically for All Day slot alone.
I would need more details on exact scenario you have at hand - which view you're using, whether you'd need to have different colors for separate appointments? I am asking as indeed, Appointment class provides Color property which sets its bakground color. However, in DayView and MultiDayView there is a separate all-day area, where you can apply another background color to the appointments there through AllDayAppointmentBackgroundColor property - for more details on this check DayVew Styling and MultiDayView Styling topics.
I look forward to your reply.
Yana,
Thanks for the reply.
We have used ViewMode="Day". Please find the attachment, i have two all day appointments where i need to set background color as green for Appointment 1 and red color for Appointment 2. I have used DayViewStyle also, but even when i have multiple appointments i can able to apply background color for only one appointment . I have mentioned the code below, looking forward for your reply. Thanks in Advance.
Code Snippet:
public DayViewStyle allDayStyle(DayViewStyle dayCell)
{
var a = new DayViewStyle
{
AllDayAppointmentBackgroundColor = Color.YellowGreen,
AllDayAreaBackgroundColor = Color.Yellow,
TimelineBackgroundColor = Color.Brown,
};
return a;
}
Thanks,
Remalin Samuel