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

How to use reminders

1 Answer 65 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 07 Sep 2010, 04:46 AM
Hello,

I am using RadScheduler, version Q1 2010. I have a custom inline edit form with asp dropdownlist that I want to use to set the reminder. How can I save the value of the dropdownlist to the database and use it to open the reminder? Also do you know if the reminder shows only when the scheduler is open or it's available throughout the application?

Thank you,
Virginia

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 10 Sep 2010, 01:33 PM
Hi Rob,

I've created a sample project to fit your scenario. Please note the CommandName properties of the Buttons in the InlineEditTemplate. You can subscribe to the OnAppointmentCommand event of the RadScheduler and use the following code:

C#:
protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
    {
        DropDownList ddlReminder = e.Container.FindControl("ddlReminder") as DropDownList;
        if (e.CommandName == "Update")
        {
            Appointment appointmentToUpdate = RadScheduler1.PrepareToEdit(e.Container.Appointment, RadScheduler1.EditingRecurringSeries);
            if (ddlReminder.SelectedValue != "none")
            {
                appointmentToUpdate.Reminders.Add(new Reminder(int.Parse(ddlReminder.SelectedValue)));
            }
            //your code here
            RadScheduler1.UpdateAppointment(appointmentToUpdate);
        }
    }
 
Markup:
<telerik:RadScheduler ID="RadScheduler1" runat="server" OnFormCreated="RadScheduler1_FormCreated"
        StartEditingInAdvancedForm="false" SelectedView="MonthView" Reminders-Enabled="true"
        OnAppointmentCommand="RadScheduler1_AppointmentCommand">
        <InlineEditTemplate>
            <asp:DropDownList ID="ddlReminder" runat="server">
                <asp:ListItem Text="none" Value="none"></asp:ListItem>
                <asp:ListItem Text="15 min" Value="15"></asp:ListItem>
                <asp:ListItem Text="1 hour" Value="60"></asp:ListItem>
                <asp:ListItem Text="1 day" Value="1440"></asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="Button1" CommandName="Update" runat="server" Text="Update" />
            <asp:Button ID="Button2" runat="server" Text="Cancel" />
        </InlineEditTemplate>
    </telerik:RadScheduler>

Please note that the reminder will not show if the RadScheduler is not opened!

Let me know if you have more questions.

All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Rob
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or