4 Answers, 1 is accepted
0
Ian
Top achievements
Rank 1
answered on 27 Apr 2018, 09:42 PM
In particular, I would like to draw in a cell.
0
Ian
Top achievements
Rank 1
answered on 27 Apr 2018, 11:36 PM
I appear to have found it...
public class MyCalendarRenderer : CalendarRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<
RadCalendar
> e)
{
base.OnElementChanged(e);
Control.Adapter = new MyAdapter(Control);
}
}
public class MyAdapter : CalendarAdapter
{
public MyAdapter(RadCalendarView view) : base(view)
{
}
protected override CalendarDayCell GenerateCalendarDayCell() => new MyCell(Owner);
}
0
Ian
Top achievements
Rank 1
answered on 28 Apr 2018, 12:56 AM
I spoke too soon. My custom adapter isn't initialized properly. Now, for example, the month names are missing.
How do I initialize an adapter?
0
Hi, Ian,
Please check the following article regarding the native Android Calendar - RadCalendarView Customizations. More specifically, you can have a look at the Defining set of customization rules part.
Regards,
Stefan Nenchev
Progress Telerik
Please check the following article regarding the native Android Calendar - RadCalendarView Customizations. More specifically, you can have a look at the Defining set of customization rules part.
Regards,
Stefan Nenchev
Progress 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