This is a migrated thread and some comments may be shown as answers.

Scheduler Appointment BackColor - Agenda View

1 Answer 102 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rob Anderson
Top achievements
Rank 1
Rob Anderson asked on 25 Sep 2015, 06:25 PM

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

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 30 Sep 2015, 08:16 AM
Hi Rob,

I have tested this and it seems to be working fine: http://screencast.com/t/0w2AxOTW
Can you attach sample project with detailed steps to reproduce.

Thanks.

Regards,
Hristo Valyavicharski
Telerik
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
Tags
Scheduler
Asked by
Rob Anderson
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or