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

Custom Event Info Renderer

2 Answers 44 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.
Richard
Top achievements
Rank 1
Richard asked on 11 Oct 2016, 09:00 PM

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 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 12 Oct 2016, 02:39 PM

Hey --

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

Rich

0
Todor
Telerik team
answered on 14 Oct 2016, 12:58 PM
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
Tags
Calendar
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Todor
Telerik team
Share this question
or