How do you set the color of the selected date circle?
I've tried a number of different CalendarCellStyle but I can't seem to get that circle to change color.
3 Answers, 1 is accepted
0
Yoanna
Telerik team
answered on 17 Mar 2015, 08:15 AM
Hi, Victor,
You can change the color of the selected shape by overriding the UpdateVisualsForCell(TKCalendar, TKCalendarCell) method of ITKCalendarDelegate. In this method you will be able to customize the cell style.
Consider the following code snippet:
[Export ("calendar:updateVisualsForCell:")]
public void UpdateVisualsForCell (TKCalendar calendar, TKCalendarCell cell)
{
if(cell is TKCalendarDayCell){
cell.Style.ShapeStroke = new TKStroke (UIColor.Red);
cell.Style.ShapeFill = new TKSolidFill (UIColor.Red);
Should you have further questions do not hesitate to contact us.
Regards,
Yoanna
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Since this is a Forms projects, where would I do the override... in the renderer?
0
Rosy Topchiyska
Telerik team
answered on 20 Mar 2015, 04:01 PM
Hello Victor,
In the current version of the calendar you can not customize the selected cell decoration. This is a known problem and we will address it for the upcoming releases.
Please, let us know if you have any other questions.
Regards,
Rosy Topchiyska
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.