As an example, I would expect to be able to overwrite the stored value for each Subject Item with a local value:
protected
void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
e.Appointment.Subject =
"TEST";
}
What I am aiming to do is to assign colors based on custom resources using a Data Source, which I was unable to get to work, so I hoped to prove the I was actually firing the Data Bound event by testing it with the Subject change.
Here is an example oh how I would like to display colors for different resources ("CalendarType"):
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
if (e.Appointment.Resources.GetResourceByType("CalendarType") != null)
e.Appointment.CssClass = DataBinder.Eval(e.Appointment.Resources.GetResourceByType("CalendarType").DataItem, "CalendarTypeColor").ToString();
}
Thanks in advance. You guys have a great product and we will purchase once we solve this problem!