Appointment Template - in code

3 posts, 1 answers
  1. Mark
    Mark avatar
    132 posts
    Member since:
    Feb 2008

    Posted 25 Sep 2008 Link to this post

    Hi ,
    I have an AppointmentTemplate referenced in HTML with 2 labels.
    How do i edit theĀ properties of these labels within code ?


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


    Many Thanks

  2. Answer
    Simon avatar
    2281 posts

    Posted 25 Sep 2008 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Mark
    Mark avatar
    79 posts
    Member since:
    Apr 2007

    Posted 04 Jun 2009 Link to this post

    This came in quite handy today.  Thanks!
Back to Top