This is a migrated thread and some comments may be shown as answers.

Custom Appointment

1 Answer 36 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ala eddine
Top achievements
Rank 1
Ala eddine asked on 21 Jan 2014, 10:27 AM

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 !

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 24 Jan 2014, 09:28 AM
Hello,

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.


Regards,
Boyan Dimitrov
Telerik
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.
Tags
Scheduler
Asked by
Ala eddine
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or