This is my code:
<ResourceTypes>
<telerik:ResourceType DataSourceID="sdsUsers" ForeignKeyField="UserID"
KeyField="UserID" Name="User_Name" TextField="User_Name" />
</ResourceTypes>
Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound
If e.Appointment.Resources.GetResourceByType("User_Name") IsNot Nothing Then
e.Appointment.BackColor = DataBinder.Eval(e.Appointment.Resources.GetResourceByType("User_Name").DataItem, "BackColor")
End If
End Sub
My user table schema:
UserID
User_Name
BackColor
I still do not get any color for the scheduler. What went wrong with my setting?