[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
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Collapse]Scheduler (legacy)
   [Expand]Overview
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Visual Elements
   [Collapse]Examples
    [Expand]Appearance
    [Expand]Data Binding
    [Expand]Data Exchange
    [Expand]Date and Time
    [Expand]Forms
    [Expand]Initial Settings
    [Expand]Menu
    [Expand]Printing
    [Expand]Protection
    [Expand]Range Control
    [Collapse]Recurrence
      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]Selection
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Disable the Appointment Recurrence Feature (legacy)

Note

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