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

Appointment Template - in code

2 Answers 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 25 Sep 2008, 08:29 AM
Hi ,
I have an AppointmentTemplate referenced in HTML with 2 labels.
How do i edit the properties of these labels within code ?

<AppointmentTemplate>

<asp:Label ID="lblAppointmentHeader2" runat="server" CssClass="appt" Text='<%# Bind("Subject") %>'></asp:Label>

</AppointmentTemplate>


Many Thanks
Mark

2 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 25 Sep 2008, 01:55 PM
Hello Mark,

You can handle the AppointmentCreated event and use e.Container.FindControl("lblAppointmentHeader2") to get a reference to the Label withing the Appointment Template.

Please see this help topic for more information on the matter.

Kind regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 2
answered on 04 Jun 2009, 06:09 PM
This came in quite handy today.  Thanks!
Tags
Scheduler
Asked by
Mark
Top achievements
Rank 1
Answers by
Simon
Telerik team
Mark
Top achievements
Rank 2
Share this question
or