This question is locked. New answers and comments are not allowed.
Hello,
I have been able to customize the looks of the calendar to my likings, however one thing remains: The color of the divider lines. How can I change those?
See the attached screenshot.
Thanks.
5 Answers, 1 is accepted
0
Barry
Top achievements
Rank 1
answered on 16 Sep 2015, 08:29 AM
One more question: How can I force to call 'calendar(calendar: TKCalendar!, updateVisualsForCell cell: TKCalendarCell!)'?
I use this for setting the event Insets, and it needs updating when the calendar view grows or shrinks (for example when the device is rotated, or when the event tableview is expanding / collapsing).
0
Accepted
Hello Barry,
Thank you for contacting us.
This can be done by adopting TKCalendarDelegate and implementing its calendar:updateVisualsForCell: method. Consider the code below:
Feel free to contact us if you have any additional questions.
Regards,
Jack
Telerik
Thank you for contacting us.
This can be done by adopting TKCalendarDelegate and implementing its calendar:updateVisualsForCell: method. Consider the code below:
- (
void
)calendar:(
TKCalendar
*)calendar
updateVisualsForCell
:(
TKCalendarCell
*)cell
{
if
([cell
isKindOfClass
:[TKCalendarDayCell
class
]] || [cell
isKindOfClass
:[TKCalendarWeekNumberCell
class
]]) {
cell
.style
.bottomBorderColor
= [
UIColor
redColor
];
cell
.style
.topBorderColor
= [
UIColor
redColor
];
}
}
Feel free to contact us if you have any additional questions.
Regards,
Jack
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Barry
Top achievements
Rank 1
answered on 16 Sep 2015, 08:38 AM
Thanks a lot Jack, that works perfectly.
Can you also look into my second question (might have overlapped when you where responding to my first post)?
0
Accepted
HI again,
You can force TKCalendar to updated its visual elements and call the calendar:updateVisualsForCell: method by calling the update method of TKCalendarPresenter. Here is a sample:
I hope this helps.
Regards,
Jack
Telerik
You can force TKCalendar to updated its visual elements and call the calendar:updateVisualsForCell: method by calling the update method of TKCalendarPresenter. Here is a sample:
self
.calendarView
.presenter
.update
(
false
)
I hope this helps.
Regards,
Jack
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Barry
Top achievements
Rank 1
answered on 16 Sep 2015, 01:10 PM
Thanks again Jack.