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

Default Confirmations for Edit and Delete

3 Answers 115 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 05 Jun 2008, 12:28 PM
I am using the RadWindow to display brief information about an appointment.  I have included an edit link and a delete link in the RadWindow.  Using similar code to the Context Menu example, I am able to trigger these events from the link, but I lose the confirmation popups for editing a recurrence and deleting an appointment.

Is the code behind the default functions somewhere in the examples folder?

How can I replicatate the double click of an appointment or clicking on the delete link in the default appointment rendering?

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 05 Jun 2008, 04:29 PM
Hi Anthony,

I am attaching you the latest version of another example (Context Menu integration) that demonstrates how to display the recurrence action confirmation dialog and to read the result from it.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Simone
Top achievements
Rank 2
answered on 09 Jul 2008, 04:18 PM
Hi,
what about not recurring appointments? I mean : what should i call in case of not recurring appointment?


if (selectedAppointment.get_recurrenceState() !== Telerik.Web.UI.RecurrenceState.NotRecurring)
{
recurrenceActionDialog = new Telerik.Web.UI.RecurrenceActionDialog(selectedAppointment.get_radScheduler());
var args = { OnConfirm : recurrenceActionConfirmHandler,
SelectedAppointment: selectedAppointment,
Command : command };

var recurrenceAction;
if (command == "Delete")
{
recurrenceAction = Telerik.Web.UI.RecurrenceAction.Delete;
}
else if (command = "Edit")
{
recurrenceAction = Telerik.Web.UI.RecurrenceAction.Edit;
}

recurrenceActionDialog.ConfirmRecurrenceAction(recurrenceAction, args);
}
else
{
???
???
}
0
T. Tsonev
Telerik team
answered on 11 Jul 2008, 04:31 PM
Hello Simone,

For non-recurring appointments we only display confirmation for delete. The code is:

recurrenceActionDialog.ConfirmDelete(args); 

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Anthony
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Simone
Top achievements
Rank 2
Share this question
or