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

Reminder Dismiss Event not Firing.

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 19 Sep 2012, 03:29 PM
Hello,

I have a radscheduler with a SQL data source provider. I have reminders enabled for our radscheduler and I am having a few problems with the reminders themselves. The first issue is that the reminders never seem to go away even after clicking the dismiss button. After the dismiss button is clicked the reminder will appear every time I return to the page and it never seems to be updated in the Reminders column of the DB. I tried adding some custom code in the ReminderDismiss event, but the event never seems to fire which is my second issue. I have these events set up just like the insert/edit events so to speak. However whenever the reminder dialog appears and I click dismiss I am unable to hit this event. I tried the same thing with the snooze event. It never seems hits the event.

Here is my client side code: 
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End"
        DataKeyField="ID" DataRecurrenceField="RecurrenceRule"
        DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="SchedulerDataSource"
        DataDescriptionField="Description"
        Height="700px"
        OnAppointmentCommand="RadScheduler1_AppointmentCommand"
        StartInsertingInAdvancedForm="true"
        Reminders-Enabled="true"
        OnReminderSnooze="Reminder_Snooze"
        DataReminderField="Reminder"
        OnReminderDismiss="RadScheduler1_ReminderDismiss"
        StartEditingInAdvancedForm="true"
        OnFormCreated="RadScheduler1_FormCreated"
        AdvancedForm-EnableCustomAttributeEditing="true"
        OnAppointmentInsert="RadScheduler1_Scheduled_EventsInsert"
        OnAppointmentUpdate="RadScheduler1_Scheduled_EventsUpdate"
        CustomAttributeNames="AssetName, Parameters"
        DataStartField="Start" DataSubjectField="Subject" Skin="Sitefinity">
        <Localization AdvancedEditAppointment="Edit Event" AdvancedNewAppointment="New Event" />
        <AppointmentContextMenuSettings EnableDefault="true" />
        <AdvancedForm Modal="true" />
        <AppointmentTemplate>
                <%# Eval("Subject") %>
                <p style="font-style: italic;">
                <%# Eval("AssetName")%></p>
                <%# Eval("Parameters")%></p>
        </AppointmentTemplate>
        <TimelineView UserSelectable="false" />
    </telerik:RadScheduler>

As you can see set reminders-enabled to true I have my data reminder field and I have set my OnReminderDismiss event.

Here is my server side code:

protected void RadScheduler1_ReminderDismiss(object sender, ReminderDismissEventArgs e)
{
    // Lets do some custom code stuff...
         
    e.Cancel = true;
}

Have I missed something really obvious? Is there another property related to reminders that I must set?

Thanks in advance for your help. I do very much like the scheduler tool otherwise.

-Justin

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 24 Sep 2012, 03:29 PM
Hello Justin,

I prepared a sample project that shows how RadScheduler1_ReminderDismiss functionality works properly by default. Please find my sample project attached and let me know what else should I add in order to make observe this unusual behavior locally. This way we will be able to inspect the issue and be more helpful in solving it.

 Hope this will be helpful.

Regards,
Boyan Dimitrov
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.
Tags
General Discussions
Asked by
Justin
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or