Appointment BackColor does not work on Year and Agenda views

2 posts, 0 answers
  1. Olivier
    Olivier avatar
    3 posts
    Member since:
    Jan 2012

    Posted 21 Feb 2017 Link to this post


    I have the following code : 

     protected void RadScheduler_AppointmentDataBound(object sender, SchedulerEventArgs e)

                if (true)
                    e.Appointment.BackColor = = Color.Yellow;




                  e.Appointment.BackColor = = Color.Red;




    that example works fine on the following views :

    - Day View.

    - Week View.

    - Month View.

    But it does not work on the Year view and the Agenda view ! 

    So, how can i make it work ?


    Best regard.

  2. Peter Milchev
    Peter Milchev avatar
    684 posts

    Posted 24 Feb 2017 Link to this post

    Hello Oliver,

    I am pasting my answer here from the duplicate support thread.

    The Year and Agenda view have different rendering that the other views.

    In Year view, the Appointment color customization is not supported out of the box. You could review the following article for guidelines on how this could be achieved: Appointments colors shown in year view.

    In Agenda view, the Appointment color customization could be achieved by using templates, with approach similar to the one in the Scheduler - Appointment Editing demo and set CSS classes to one of the inner elements - How to change the CSS class for a div in code-behind?.

    Peter Milchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top