Scheduler Appointment BackColor - Agenda View

2 posts, 0 answers
  1. Rob Anderson
    Rob Anderson avatar
    3 posts
    Member since:
    Sep 2009

    Posted 25 Sep 2015 Link to this post

    I have a Scheduler control that implements a custom appointment BackColor for each specific user.  The color works fine when in Day view or Week view, but when I switch to Agenda view the color doesn't show up.  I'm using the Metro skin.  I can't seem to find anything in the .rsAgendaView style that seems to be preventing the BackColor from working.  When I test with ForeColor it works fine. 

    Protected Sub rsMeetings_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles rsMeetings.AppointmentDataBound
        Dim dc As String
        If e.Appointment.Attributes.Item("StaffEmployeeID").ToString <> Nothing Then
            dc = GetAppointmentColor(e.Appointment.Attributes.Item("StaffEmployeeID").ToString)
            e.Appointment.BackColor = System.Drawing.Color.FromName(dc)
            'e.Appointment.ForeColor = System.Drawing.Color.FromName(dc)
        End If
    End Sub

  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 30 Sep 2015 Link to this post

    Hi Rob,

    I have tested this and it seems to be working fine:
    Can you attach sample project with detailed steps to reproduce.


    Hristo Valyavicharski
    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
Back to Top