I have created a custom attribute using
<AppointmentTemplate>
<asp:Label ID="lblTitle" runat="server"><%# Eval("customTitle") %></asp:Label>
</AppointmentTemplate>
I call various function that popluate this field wiht various pieces of text. I use the following code
RadScheduler1.DataKeyField =
"ID";
RadScheduler1.DataStartField =
"Start";
RadScheduler1.DataEndField =
"End";
RadScheduler1.DataSubjectField =
"Subject";
RadScheduler1.DataRecurrenceField =
"RecurrenceRule";
RadScheduler1.DataRecurrenceParentKeyField =
"RecurrenceParentID";
PupilManagementPupilsService pmpService = new PupilManagementPupilsService();
using (TList<PupilManagementPupils> pmpList = pmpService.GetAll())
{
foreach (PupilManagementPupils pmpItem in pmpList)
{
DateTime dteDOBDateTime;
string txtDate;
string[] arrayDateTime;
if (!String.IsNullOrEmpty(pmpItem.TxtDob.ToString()))
{
txtDate = pmpItem.TxtDob.ToString();
arrayDateTime = txtDate.Split(
' ');
txtDate = arrayDateTime[0].ToString();
dteDOBDateTime =
DateTime.Parse(pmpItem.TxtDob.Value.ToShortDateString());
Appointment appointment = new Appointment("DOB_" + pmpItem.TxtSchoolId.ToString(), dteDOBDateTime, dteDOBDateTime, "none found");
appointment.Attributes[
"customTitle"] = "Interview : ";
appointments.Add(appointment);
}
}
}
RadScheduler1.DataSource = appointments;
RadScheduler1.DataBind();
and it doesnt show anything in the customTitle field, even when i hardcode text in.
Do you have any ideas why it would do this? Is there a limit to the number of customfields allowed ?
It works for a few functions correctly but for some reason this one doesnt do anything. I have done a trace and its getting into the function correctly etc..just not populating the custom field
Thanks
Greg