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

ShowsConfirmationWindowOnDelete

1 Answer 55 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rodion
Top achievements
Rank 1
Rodion asked on 30 Jan 2011, 09:04 PM
we used to have

ShowsConfirmationWindowOnDelete

 property in RadScheduler, what is the counterpart of that property in ScheduleView? I noticed that Deleting events gets fired AFTER confirmation dialog is shown, so I cannot override it by e.Cancel=true...

Please advise

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 02 Feb 2011, 10:00 AM
Hello Rodion,

What you need to do to prevent the Delete confirmation dialog from showing is to handle the ShowDialog event of the ScheduleView and to check the arguments - they have a proeprty of type SchedulerDialogViewModel. This is the base ViewModel of all ScheduleView dialogs. If this object is of type ConfirmDialogViewModel this means that this is the delete confirmation dialog and you should cancel showing the dialog by setting the Cancel property of the event arguments to true. You can set which opetion to be selected instead of the dialog be shown be setting the DefaultDialogResult property of the arguments. True means - confirmed, false - cancelled.

Hope this helps!

Kind regards,
Miroslav Nedyalkov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
ScheduleView
Asked by
Rodion
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or