I have a RadScheduler populated via an SqlDataSource
The SELECT statement on the data source is this.
SqlDataSource1.SelectCommand = "SELECT * FROM [Activity] WHERE act_Rep_ID = " + ScheduleUserID.ToString();Simple stuff.
Now in the AppointmentDateBound event I am trying to set a different color to the appointment, based on a certain value that should be in the appointment thanks to the SELECT * query in the SqlDataSource.
In this example you can see my test code where I just test the 'Subject'.
protected void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e) { Appointment a = e.Appointment; if (a.Subject == "Phone Call") { a.BackColor = System.Drawing.Color.Yellow; a.BorderColor = System.Drawing.Color.Red; a.BorderStyle = BorderStyle.Dotted; a.BorderWidth = Unit.Pixel(2); } }The value I need however is a value that is in the Activity table, but is not listed as a property of the appointment object.
In fact, the appointment object only holds a fraction of the values from each Activity table row.
How do I get to all the other values that this SqlDataSource would be holding ?