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

multiple days event

3 Answers 26 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.
massimiliano
Top achievements
Rank 1
massimiliano asked on 30 Nov 2015, 12:49 PM

Hello,

I'm using an EKCalendar with TKCalendarEventKitDataSource, implementing TKCalendarEventKitDataSourceDelegate.

The calendar does not show events that span over multiple days, it shows only the starting day.

I read on the forum that I should get the range from eventsFromDate, but this method gets called only for classes that implement TKCalendarDataSource, not for EventKit data sources. Right?

3 Answers, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 02 Dec 2015, 03:46 PM
Hi, Massimiliano,

Thank you for contacting us.

You are correct, the method calendar:eventsFromDate:toDate:withCallback: asks a class that implements TKCalendarDataSource  for an array of objects adopting the TKCalendarEventProtocol with a callback. If you need to get the events for a specific date you can use TKCalendar's method eventsForDate: passing it the date for which you need to get events. Please consider the code below:
[self.calendarView eventsForDate:date];

I hope this helps. Should you have further questions, do not hesitate to contact us.

Regards,
Adrian
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
massimiliano
Top achievements
Rank 1
answered on 03 Dec 2015, 03:00 PM

Ok, I know how to get events for specific dates, but what I need is to show the colored circle on the calendar cells for multiple days event. 

At the moment I get the circle on the first day only.

 How can I do that?

 Thanks.

0
Adrian
Telerik team
answered on 07 Dec 2015, 02:09 PM
Hello, Massimiliano,

Currently we have an issue with displaying multiple days events like described using TKCalendarEventKitDataSource. It will be addressed in one of our future releases. I logged the issue in our feedback portal where you can follow its status. I also updated you Telerik points accordingly.

If you need further assistance I will be glad to help.

Regards,
Adrian
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
Tags
Calendar
Asked by
massimiliano
Top achievements
Rank 1
Answers by
Adrian
Telerik team
massimiliano
Top achievements
Rank 1
Share this question
or