[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Collapse]Scheduler (legacy)
   [Expand]Getting Started
   [Expand]Visual Elements
    [Expand]Data Binding
    [Expand]Data Exchange
    [Expand]Date and Time
    [Expand]Initial Settings
    [Expand]Range Control
      How to: Create Appointments with Various Recurrence Types Programmatically (legacy)
      How to: Customize Minutely Recurrence (legacy)
      How to: Customize Hourly Recurrence (legacy)
      How to: Customize Daily Recurrence (legacy)
      How to: Customize Weekly Recurrence (legacy)
      How to: Customize Monthly Recurrence (legacy)
      How to: Customize Yearly Recurrence (legacy)
      How to: Disable the Appointment Recurrence Feature (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Disable the Appointment Recurrence Feature (legacy)


You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

In some real-life applications it may be necessary to prohibit end-users from working with recurring appointments. This example demonstrates how to disable the Appointment Recurrence feature of a scheduler used in bound or unbound mode.

Expanded Bound Mode

To disable the Appointment Recurrence feature of the SchedulerControl control used in bound mode, do not specify mappings for the Appointment.RecurrenceInfo and Appointment.Type standard properties of an appointment (the AppointmentMapping.RecurrenceInfo and AppointmentMapping.Type properties).

In this case, all pattern appointments and exceptions will be displayed as simple (non-recurring) appointments and recurrence information contained in patterns will be ignored. End-users will be prevented from creating and editing recurrent appointments - the New Recurring Appointment and New Recurring Event items will be removed from the context menu and the Edit Appointment form will not show the Recurrence button allowing end-users to define the recurrence rule.

Expanded Unbound Mode

If you use the SchedulerControl control in unbound mode, set the OptionsCustomization.AllowAppointmentCreate and OptionsCustomization.AllowAppointmentEdit properties to the UsedAppointmentType.NonRecurring enumeration member to prevent end-users from creating and editing recurring appointments.

In this case, the context menu of the scheduler will not contain the New Recurring Appointment and New Recurring Event items, and the Edit Appointment form will not include the Recurrence button that allows end-users to invoke the Appointment Recurrence dialog and specify the recurrence rule.

Is this topic helpful?​​​​​​​