Hello
I cretated a new class CustomAppointment that inherits Appointment class.
public class CustomAppointment : Appointment
{
public string LabelLeft;
public string LabelRight;
......
}
and i want to show the appointments like this
____________________________________________________
| labelleft | labelright |
|_________________________|__________________________|
so when i tryed to show my CustomAppointment List "Appointments" by setting the
AppointmentTemplate by ID :
<AppointmentTemplate>
<div>
<h3 class="leftlabel">
<%#Appointments.Where(t=>t.ID == Container.Appointment.ID).FirstOrDefault().LabelLeft%>
</h3>
</div>
<div>
<h3 class="rightlabel">
<%#Appointments.Where(t=>t.ID == Container.Appointment.ID).FirstOrDefault().LabelRight%>
</h3>
</div>
</AppointmentTemplate>
i found that Container.Appointment.ID is empty while t.ID contains the value that i set it in !!
Any help Please !