This is a migrated thread and some comments may be shown as answers.
Selected Date Circle
3 Answers 71 Views
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 12 Mar 2015, 01:33 PM
Okay I give up :)

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

Sort by
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);
    }
}

Further details about customization in TKCalendar are available in our online documentation.

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.

 
0
Victor
Top achievements
Rank 1
answered on 17 Mar 2015, 09:04 PM
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.

 
Asked by
Victor
Top achievements
Rank 1
Answers by
Yoanna
Telerik team
Victor
Top achievements
Rank 1
Rosy Topchiyska
Telerik team
Share this question
or