Selected Date Circle

4 posts, 0 answers
  1. Victor
    Victor avatar
    17 posts
    Member since:
    Jun 2011

    Posted 12 Mar 2015 Link to this post

    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.
  2. Yoanna
    Admin
    Yoanna avatar
    44 posts

    Posted 17 Mar 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Victor
    Victor avatar
    17 posts
    Member since:
    Jun 2011

    Posted 17 Mar 2015 in reply to Yoanna Link to this post

    Since this is a Forms projects, where would I do the override... in the renderer?
  5. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 20 Mar 2015 Link to this post

    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.

     
Back to Top
DevCraft banner