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

Disable "Edit Series" in Appointment Dialog?

1 Answer 82 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 23 Apr 2012, 12:46 PM
Hi,

is it possible to disable the "edit series" (recurrence) in the Appointment Dialog? Thank'S a lot

Best regards
Rene

1 Answer, 1 is accepted

Sort by
0
Annett
Top achievements
Rank 1
answered on 04 May 2012, 02:35 PM

Hi

Use event ShowDialog on the RadScheduleView-Control. And there you can do stuff like this:

if (e.DialogViewModel is RecurrenceChoiceDialogViewModel)
{
    (e.DialogViewModel as RecurrenceChoiceDialogViewModel).IsSeriesModeSelected = true;
    if (((RecurrenceChoiceDialogViewModel)e.DialogViewModel).RecurrenceChoiceDialogMode ==
        RecurrenceChoiceDialogMode.Opening ||
        ((RecurrenceChoiceDialogViewModel)e.DialogViewModel).RecurrenceChoiceDialogMode ==
        RecurrenceChoiceDialogMode.Resizing)
    {
        e.DefaultDialogResult = true;
        e.Cancel = true;
    }
}

In this example i say always change the series and do not show the user the dialog.

Annett

Tags
ScheduleView
Asked by
ITA
Top achievements
Rank 1
Answers by
Annett
Top achievements
Rank 1
Share this question
or