Custom Appointment

2 posts, 1 answers
  1. Ala eddine
    Ala eddine avatar
    19 posts
    Member since:
    Feb 2012

    Posted 21 Jan 2014 Link to this post


    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 :


                                <h3 class="leftlabel">
                                    <%#Appointments.Where(t=>t.ID == Container.Appointment.ID).FirstOrDefault().LabelLeft%>
                                <h3 class="rightlabel">
                                      <%#Appointments.Where(t=>t.ID == Container.Appointment.ID).FirstOrDefault().LabelRight%>


    i found that    Container.Appointment.ID is empty while t.ID contains the value that i set it in !!

    Any help Please !
  2. Answer
    Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 24 Jan 2014 Link to this post


    I would like to clarify that I have tested the described scenario and it works as expected. Please find attached a sample page implementing very similar scenario: the appointment template  shows the Container.ID for the current appointment.

    Boyan Dimitrov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top