Click here to Skip to main content
15,884,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to customize day cells on Telerik calendar in view mode flow (that's essential). It works perfectly in other views, but it doesn't with flow view.

What I have tried:

I've tried implementing CalendarDelegate and overriding DidNavigateToDate method, but it is not called for cellType == TKCalendarCellType.Day. It is called for DayName and Title though (although I don't need these).

Is it a bug in Telerik, or am I missing something?

A code chunk that might be useful to illustrate the problem:
C#
calendar.ViewMode = TKCalendarViewMode.Flow;
calendar.Delegate = new MyCalendarDelegate();

...

class MyCalendarDelegate : TKCalendarDelegate
{
    public override TKCalendarCell ViewForCellOfKind(TKCalendar calendar, TKCalendarCellType cellType)
    {
        return cellType == TKCalendarCellType.Day ? new MyDayCell() : null;
    }
}
Posted
Updated 13-Jul-16 5:20am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900