Reminder Bell in AppointmentTemplate

3 posts, 0 answers
  1. Wayne Wilson
    Wayne Wilson avatar
    4 posts
    Member since:
    Mar 2004

    Posted 23 Feb 2013 Link to this post

    Hi,

    I am defining a AppointmentTemplate in my RadScheduler. When I do so I lose the reminder bell icon that appears in the appointment label on the calendar when there is a pending reminder. Is there a way that I can retain that functionality with a custom appointment template?

    Here is my Template:

    <AppointmentTemplate>

    <%# Eval("Subject") %> 

    <%# Eval("Amount").Decimal().Equals(0M) ? "" : ": Amount : " + Eval("Amount").Decimal().ToString("C2")%>

    </AppointmentTemplate>


    Thanks

    Wayne Wilson
  2. Plamen
    Admin
    Plamen avatar
    3080 posts

    Posted 26 Feb 2013 Link to this post

    Hi Wayne,

     
    You can add a Panel with CssClass "rsAptReminder" in AppointmentCreated server event if the appointment has reminder set as in is done in the code below:

    protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
          {
              if (e.Appointment.Reminders.Count != 0)
              {
                  Panel recurrenceStateDiv = new Panel();
                  recurrenceStateDiv.CssClass = "rsAptReminder";
                  e.Container.Controls.AddAt(0, recurrenceStateDiv);
              }

    Hope this will be helpful.
    All the best,
    Plamen
    the Telerik team
    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 their blog feed now.
  3. Wayne Wilson
    Wayne Wilson avatar
    4 posts
    Member since:
    Mar 2004

    Posted 26 Feb 2013 Link to this post

    Thanks, that is exactly what I needed.

    --Wayne
Back to Top