How do I select a day with the circle icon showing up

Thread is closed for posting
2 posts, 0 answers
  1. James
    James avatar
    16 posts
    Member since:
    Jan 2012

    Posted 30 Mar Link to this post

    Hello. I have this code.

     

    self.tkCalendar.selectedDate = event.endDate

    self.tblAppointments.reloadData()

    self.tkCalendar.reloadData()

     

    it selects the date but the circular icon around the day does not show up. Can you assist?

     

    Thanks in advance.

     

     

  2. Deyan
    Admin
    Deyan avatar
    2147 posts

    Posted 03 Apr Link to this post

    Hello James,

    As per this documentation article:

    http://docs.telerik.com/devtools/ios/calendar/customizations

    you can use the TKCalendarDelegate  protocol and implement its calendar:upateVisualsForCell: method to change the styles of a cell depending on its state.

    In this method you have a reference to the cell in question which exposes API to help you understand if it is selected or not. Take a look at the API ref:

    http://docs.telerik.com/devtools/ios/api/Classes/TKCalendarDayCell.html#//api/name/state

    Based on that state you can use the style property to change the shape which is exposed by the shape property:

    http://docs.telerik.com/devtools/ios/api/Classes/TKCalendarCellStyle.html

    I hope this is helpful.

    Regards,
    Deyan
    Telerik by Progress
    Want to build beautiful Android apps as well? Check out UI for Android which enables the same set of scenarios, allowing you to create the same great app experience on both iOS and Android.
Back to Top