Events spanning multiple days

2 posts, 1 answers
  1. ejb
    ejb avatar
    6 posts
    Member since:
    Dec 2006

    Posted 21 May 2015 Link to this post

    Does the CalendarView support events spanning multiple days?

    For example an event starts at 11 PM and goes to 2 AM the next day. the event only shows on the day it starts.

     is this just a limitation of the calendar or is there something else you have to do to get them to show on days other than just the starting day?

  2. Answer
    Antony Jekov
    Antony Jekov avatar
    88 posts

    Posted 25 May 2015 Link to this post

    Hello EJ,

    Thank you for contacting the Android team.

    Events which extend in periods longer than a single day will be shown multiple times in the range of the event. Refer to the screenshot I am sending you.

    I am using the following code:
    protected void onCreate(Bundle savedInstanceState) {
        Calendar calendar = Calendar.getInstance();
        long now = calendar.getTimeInMillis();
        calendar.add(Calendar.DATE, 1);
        long tomorrow = calendar.getTimeInMillis();
        RadCalendarView calendarView = new RadCalendarView(this);
        List<Event> events = new ArrayList<Event>();
        events.add(new Event("Long event", now, tomorrow));

    Antony Jekov
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top