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

Reminder Bell in AppointmentTemplate

2 Answers 62 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Wayne Wilson
Top achievements
Rank 1
Wayne Wilson asked on 23 Feb 2013, 06:21 PM
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 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Feb 2013, 01:57 PM
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.
0
Wayne Wilson
Top achievements
Rank 1
answered on 26 Feb 2013, 02:37 PM
Thanks, that is exactly what I needed.

--Wayne
Tags
Scheduler
Asked by
Wayne Wilson
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Wayne Wilson
Top achievements
Rank 1
Share this question
or