This is a migrated thread and some comments may be shown as answers.

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

1 Answer 37 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 30 Mar 2017, 07:17 PM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 03 Apr 2017, 08:27 AM
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.
Tags
Calendar
Asked by
James
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or