|
| 1 | +--- |
| 2 | +title: Disabling or Replacing Recurrence Change Message in UI for WinForms Scheduler |
| 3 | +description: Learn how to disable or replace the recurrence change message displayed in UI for WinForms Scheduler when modifying recurring appointments. |
| 4 | +type: how-to |
| 5 | +page_title: Disable or Customize Recurring Appointment Message in WinForms Scheduler |
| 6 | +meta_title: Disable or Customize Recurring Appointment Message in WinForms Scheduler |
| 7 | +slug: scheduler-disable-recurrence-message |
| 8 | +tags: scheduler, reminder, recurrence, localization, behavior |
| 9 | +res_type: kb |
| 10 | +ticketid: 1082151 |
| 11 | +--- |
| 12 | + |
| 13 | +## Environment |
| 14 | +|Product Version|Product|Author| |
| 15 | +|----|----|----| |
| 16 | +|2025.2.520|RadScheduler for WinForms|[Dinko Krastev](https://www.telerik.com/blogs/author/dinko-krastev)| |
| 17 | + |
| 18 | +## Description |
| 19 | + |
| 20 | +When moving or changing a recurring appointment in UI for WinForms Scheduler, a warning message appears asking whether to modify the entire recurring appointment or a single occurrence. I want to disable this message or replace it with custom text. |
| 21 | + |
| 22 | + |
| 23 | +## Solution |
| 24 | + |
| 25 | +To disable the recurrence change message, override the dragging behavior of the Scheduler using the following code: |
| 26 | + |
| 27 | +````C# |
| 28 | + |
| 29 | +public SurroundingClass() |
| 30 | + { |
| 31 | + InitializeComponent(); |
| 32 | + this.RadScheduler1.SchedulerElement.DragDropBehavior = new CustomDraggingBehavior(this.RadScheduler1.SchedulerElement); |
| 33 | + } |
| 34 | + |
| 35 | + public class CustomDraggingBehavior : AppointmentDraggingBehavior |
| 36 | + { |
| 37 | + public CustomDraggingBehavior(SchedulerVisualElement activeOwner) : base(activeOwner) |
| 38 | + { |
| 39 | + } |
| 40 | + |
| 41 | + protected override bool ValidateOccurrenceDropTarget(DateTime targetStartDate, DateTime targetEndDate, bool allDay) |
| 42 | + { |
| 43 | + return true; |
| 44 | + } |
| 45 | + } |
| 46 | + |
| 47 | +```` |
| 48 | + |
| 49 | +Alternatively, replace the message text by specifying the `RadSchedulerStringId.RecurrenceDragDropCreateExceptionDialogText` string in the `RadSchedulerLocalizationProvider`. Refer to the Telerik documentation for [localization and translating strings](https://docs.telerik.com/devtools/winforms/scheduler/localization/translating-strings). |
| 50 | + |
| 51 | +## See Also |
| 52 | + |
| 53 | +* [RadScheduler Localization Provider](https://docs.telerik.com/devtools/winforms/scheduler/localization/translating-strings) |
| 54 | +* [RadScheduler Overview](https://docs.telerik.com/devtools/winforms/scheduler/overview) |
| 55 | + |
0 commit comments