Custom Event Info Renderer

3 posts, 0 answers
  1. Richard
    Richard avatar
    44 posts
    Member since:
    Jun 2014

    Posted 11 Oct Link to this post

    Hi --

    I'm starting a new topic regarding customizing the event info renderer. 

     

    I have this code

    adapter = new ArrayAdapter<>(this, R.layout.popup_event_info_window);
    calendarView.getEventAdapter().setEvents(events);
    calendarView.eventsManager().setAdapter(adapter);

     

    and I'm getting en error

    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.telerik.widget.calendar.EventsManager.setAdapter(android.widget.ArrayAdapter)' on a null object reference

     

    There is no good documentation or any code examples that demonstrate how to do this. Please provide them.

     

    Thank you

     

    Rich

  2. Richard
    Richard avatar
    44 posts
    Member since:
    Jun 2014

    Posted 12 Oct in reply to Richard Link to this post

    Hey --

    The EventsManager for my CalendarView is always null so I can't use any of the methods.

    Rich

  3. DevCraft banner
  4. Todor
    Admin
    Todor avatar
    778 posts

    Posted 14 Oct Link to this post

    Hi Richard,

    I have answered to your post regarding similar topic here.

    In addition, the eventsManager is null when you haven't changed the calendar's event display mode (it should be set to inline or popup before you change the adapter).

    I hope this information helps.

    Regards,
    Todor
    Telerik by Progress
    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
Back to Top