I am already using a renderer to style Android cells successfully, but I did not see any way to get the Text of the DayName so I could do a simple
.ToUpper()
on it.
Thanks.
1 Answer, 1 is accepted
0
Yana
Telerik team
answered on 03 Jul 2018, 03:00 PM
Hello Adam,
You could define a CustomizationRule for the Calendar inside the custom renderer on Android and inside its Apply method get the Text of the DayName cells and execute toUpper() on it. Please check the quick example below:
if (calendarCell.CellType == CalendarCellType.DayName)
{
String cellText = calendarCell.Text;
if (cellText != null)
{
calendarCell.Text = cellText.ToUpper();
}
}
}
}
You could check Customizations topic for more details on CustomizationRule feature of RadCalendar for Android.
I hope this would be helpful.
Regards,
Yana
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