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
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>>