How can I set it up so that when a user selects a day in the Scheduler, then selects to create a recurring appointment, the Edit Recurring Appointment dialog will, when Weekly recurrence type is selected, set the Day of Week to the Day of Week selected in the calendar, NOT the Day of Week in real-time.
4 Answers, 1 is accepted
Thank you for writing.
You can force the edit dialog for adding a new appointment to be shown by using a custom SchedulerSelectionBehavior. Here is demonstrated a sample code snippet:
I hope this information helps. Should you have further questions I would be glad to help.
Sorry took so long to get back... I still need to address the last detail of my problem. In the Edit Recurrence dialog, in the Recurrence Patten group box, I need it to pop up with Weekly selected and with the Day of the Week set to the Day of Week that was selected in the Scheduler.
Note that the EditRecurrenceDialog loads the information for the existing RecurrenceRule for the appointment that is being edited. Hence, if you are editing an existing appointment, it is normal to have that information coming from the appointment itself.
However, you can create a custom EditRecurrenceDialog and override its LoadSettingsFromEvent method. Here is the appropriate place to load a WeeklyRecurrenceRule to the appointment before the data is loaded to the dialog. Thus, you can control what recurrence rule to be shown in the dialog. Here is a sample code snippet:
I hope this information helps. If you have any additional questions, please let me know.