Appointments colors shown in year view

2 posts, 0 answers
  1. Jalil
    Jalil avatar
    3 posts
    Member since:
    Mar 2016

    Posted 26 Jun 2016 Link to this post


    I am using radscheduler and customizing the colors of Appointments in Day, Week and Month Views, However, in the Year view I am unable to view the appointments days in different colors (depending on what type of appointments are made on that day). In the year view, all days containing appointments are shown in a single color, is there a way to view these days in different colors?

    We are against our project deadline so a quick response would be greatly appreciated.


    Jalil Akhtar

  2. Peter Milchev
    Peter Milchev avatar
    291 posts

    Posted 29 Jun 2016 Link to this post

    Hello Jalil,

    The RadScheduler does not support customizing the Appointment color in Year view out of the box. Because the YearView does not fire the OnSlotCreated event, the only way to achieve that functionality is with client side programming. You should investigate the HTML structure of the day cell (anchor tag inside a td). Then using JavaScript you could traverse all the days in the YearView. For each day you should check in the appointments collection if there are appointments for the day (using the getAppointmentsInRange or getAppointmentsStartingInRange) and if there are, you could add your custom CSS class and change the highlight color of the cell.

    Peter Milchev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top