How to customize a cell based on its date

2 posts, 0 answers
  1. Martin
    Martin avatar
    14 posts
    Member since:
    Jan 2008

    Posted 31 Jan 2015 Link to this post

    I need to customize a cell based on the date it represents. Neither void UpdateVisualsForCell (TKCalendar calendar, TKCalendarCell cell) nor  TKCalendarCell ViewForCellOfKind (TKCalendar calendar, TKCalendarCellType cellType) allows me to do this. 

    Ideally I would like to override a method similar to TKCalendarEvent[] EventsForDate (TKCalendar calendar, NSDate date) (something like TKCalendarCell ViewForCell (TKCalendar calendar, NSDate date)). Or is there some other way to do this?
  2. Jack
    Jack avatar
    2333 posts

    Posted 02 Feb 2015 Link to this post

    Hello Martin,

    You can use the calendar:updateVisualsFoCell: method in this case. The day cell has a property date, you can use this property to determine the date and customize it accordingly. The technique is demonstrated in this help article. You just need to change the condition with one based on the date property.

    I hope this helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top