I have a subclass of CalendarDayCell on Android and I'm trying to set the text color in an override of UpdateTextColor. The method takes two integers. What do they do? I've tried setting both to my desired color but the text is always black.
Indeed, the SetTextColor method takes two integers - first one is used to set the enabled textcolor and the second one is used to set the disabled textcolor of the cell.
In order to customize the textcolor of the daycell you could use the approach below:
Define the RadCalendar in XAML:
<telerikInput:RadCalendar x:Name="calendar" />
and in code behind set the textcolor of the daycell using the following snippet:
this.calendar.DayCellStyle = new CalendarCellStyle {
TextColor = Color.Green };
If the approach above is not suitable for you, could you please give us more details on your setup and what do you want to achieve using custom daycell scenario?
Looking forward to your reply.
Regards,
Didi Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items