skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class AppointmentDraggingBehavior

Inheritance
System.Object
DisposableObject
RadObject
RadService
RadDragDropService
AppointmentDraggingBehavior
Inherited Members
RadDragDropService.messageFilterAdded
RadDragDropService.xOutlineFormOffset
RadDragDropService.yOutlineFormOffset
RadDragDropService.beginPoint
RadDragDropService.DisposeManagedResources()
RadDragDropService.IMessageListener.PreviewMessage(Message)
RadDragDropService.HandleLeftButtonUp()
RadDragDropService.HandleEscKeyDown()
RadDragDropService.PrepareContext()
RadDragDropService.IMessageListener.PreviewWndProc(Message)
RadDragDropService.IMessageListener.PreviewSystemMessage(SystemMessage, Message)
RadDragDropService.IsDropTargetValid(ISupportDrop)
RadDragDropService.RestoreOriginalMouseCursor()
RadDragDropService.SetHintWindowPosition(Point)
RadDragDropService.ShouldBeginDrag(Point, Point)
RadDragDropService.OnPreviewDragStart(PreviewDragStartEventArgs)
RadDragDropService.PerformStart()
RadDragDropService.Commit()
RadDragDropService.GetDropTarget(Point, Point)
RadDragDropService.OnPreviewDropTarget(PreviewDropTargetEventArgs)
RadDragDropService.BeginDrag(Point, ISupportDrag)
RadDragDropService.EndDrag(Point, RadControl)
RadDragDropService.EndDrag()
RadDragDropService.DoMouseMove(Point)
RadDragDropService.CanCommit
RadDragDropService.ValidCursor
RadDragDropService.Initialized
RadDragDropService.InvalidCursor
RadDragDropService.UseDefaultPreview
RadDragDropService.DropTarget
RadDragDropService.DropLocation
RadDragDropService.HintWindow
RadDragDropService.IMessageListener.DesiredHook
RadDragDropService.PreviewDragDrop
RadDragDropService.PreviewDragOver
RadDragDropService.PreviewDropTarget
RadDragDropService.PreviewDragStart
RadDragDropService.PreviewDragHint
RadService.CanOperate()
RadService.Start(Object)
RadService.Stop(Boolean)
RadService.Pause()
RadService.Resume()
RadService.OnStarted()
RadService.OnStarting(RadServiceStartingEventArgs)
RadService.OnStopped()
RadService.OnStopping(RadServiceStoppingEventArgs)
RadService.IsContextValid(Object)
RadService.Abort()
RadService.PerformResume()
RadService.PerformPause()
RadService.SetContext(Object)
RadService.OnEnabledChanged()
RadService.Context
RadService.AvailableAtDesignTime
RadService.State
RadService.Name
RadService.Enabled
RadService.Starting
RadService.Started
RadService.Stopping
RadService.Stopped
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.GetValue(RadProperty)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(PropertyDescriptor)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.AddStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)
RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)
RadObject.OnNotifyPropertyChanged(String)
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.IsPropertyCancelable(RadPropertyMetadata)
RadObject.PropertyValues
RadObject.IsDesignMode
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.OnBitStateChanged(Int64, Boolean, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.PerformDispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.BitState
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll

Syntax

public class AppointmentDraggingBehavior : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener

Constructors

AppointmentDraggingBehavior(RadScheduler)

Declaration
public AppointmentDraggingBehavior(RadScheduler scheduler)
Parameters
RadScheduler scheduler

AppointmentDraggingBehavior(SchedulerVisualElement)

Declaration
public AppointmentDraggingBehavior(SchedulerVisualElement activeOwner)
Parameters
SchedulerVisualElement activeOwner

Properties

ActiveFeedback

Gets the active feedback.

Declaration
public DragFeedbackElement ActiveFeedback { get; }
Property Value
DragFeedbackElement

ActiveOwner

Gets the behavior's active owner.

Declaration
public SchedulerVisualElement ActiveOwner { get; }
Property Value
SchedulerVisualElement

AutoScrollDayViewOnDrag

Gets or sets a value indicating whether the appointment areas in DayView should be automatically scrolled when dragging off their bounds.

Declaration
public bool AutoScrollDayViewOnDrag { get; set; }
Property Value
System.Boolean

DragNavigationInterval

Gets or sets the minimum time interval between automatic view navigations.

Declaration
public TimeSpan DragNavigationInterval { get; set; }
Property Value
System.TimeSpan

DragNavigationOffset

Gets or sets the offset from the bounds of the control in pixels after which the automatic view navigation will be triggered.

Declaration
public int DragNavigationOffset { get; set; }
Property Value
System.Int32

IsDragging

Indicates whether there is an active drag operation.

Declaration
public bool IsDragging { get; }
Property Value
System.Boolean

Scheduler

The RadScheduler that owns the behaviors.

Declaration
public RadScheduler Scheduler { get; }
Property Value
RadScheduler

ShowCreateExceptionDialog

Gets or sets a value indicating whether a prompt dialog box should be shown when the user is about to create occurrence exception via drag and drop.

Declaration
public bool ShowCreateExceptionDialog { get; set; }
Property Value
System.Boolean

ShowOccurrenceValidationMessages

Gets or sets a value indicating whether a message box should be shown when an occurrence is dragged to an invalid location.

Declaration
public bool ShowOccurrenceValidationMessages { get; set; }
Property Value
System.Boolean

Methods

AddToOwnerCollection()

Adds the active feedback to the active owner.

Declaration
public virtual bool AddToOwnerCollection()
Returns
System.Boolean

BeginDrag(SchedulerVisualElement, AppointmentElement)

Request move operation.

Declaration
public bool BeginDrag(SchedulerVisualElement newOwner, AppointmentElement appointment)
Parameters
SchedulerVisualElement newOwner

AppointmentElement appointment

Returns
System.Boolean

CanStart(Object)

Declaration
protected override bool CanStart(object context)
Parameters
System.Object context

Returns
System.Boolean

Overrides
RadDragDropService.CanStart(Object)

CreateFeedback(RadScheduler, SchedulerView, AppointmentElement)

Creates a new appointment feedback of a given appointment.

Declaration
public virtual DragFeedbackElement CreateFeedback(RadScheduler scheduler, SchedulerView view, AppointmentElement appointment)
Parameters
RadScheduler scheduler

SchedulerView view

AppointmentElement appointment

Returns
DragFeedbackElement

DoDragOver(Point)

Handles dragging the active feedback to a given point.

Declaration
public void DoDragOver(Point controlDropLocation)
Parameters
System.Drawing.Point controlDropLocation

The destination point in control coordinates.

Drop()

Handles the Drop operation.

Declaration
public virtual void Drop()

GetAllDayHeaderAtPoint(Point)

Gets a DayViewAllDayHeader at a specified location.

Declaration
protected DayViewAllDayHeader GetAllDayHeaderAtPoint(Point location)
Parameters
System.Drawing.Point location

The location in control coordinates.

Returns
DayViewAllDayHeader

The DayViewAllDayHeader at that location.

GetCellAtPoint(Point)

Gets a SchedulerCellElement at a specified location.

Declaration
protected SchedulerCellElement GetCellAtPoint(Point location)
Parameters
System.Drawing.Point location

The location in control coordinates.

Returns
SchedulerCellElement

The SchedulerCellElement at that location.

GetCellDate(SchedulerCellElement)

Gets the destination date for an appointment that was dropped on a given cell.

Declaration
protected virtual DateTime GetCellDate(SchedulerCellElement cell)
Parameters
SchedulerCellElement cell

The SchedulerCellElement.

Returns
System.DateTime

The destination date.

GetDayViewTableAtPoint(Point)

Gets a DayViewAppointmentsTable at a specified location.

Declaration
protected DayViewAppointmentsTable GetDayViewTableAtPoint(Point location)
Parameters
System.Drawing.Point location

The location in control coordinates.

Returns
DayViewAppointmentsTable

The DayViewAppointmentsTable at that location.

GetFeedback(SchedulerVisualElement)

Gets a specific feedback.

Declaration
public DragFeedbackElement GetFeedback(SchedulerVisualElement feedbackOwnerElement)
Parameters
SchedulerVisualElement feedbackOwnerElement

Returns
DragFeedbackElement

GetMonthViewAreaAtPoint(Point)

Gets a MonthViewAreaElement at a specified location.

Declaration
protected MonthViewAreaElement GetMonthViewAreaAtPoint(Point location)
Parameters
System.Drawing.Point location

The location in control coordinates.

Returns
MonthViewAreaElement

The MonthViewAreaElement at that location.

GetTimelinePresenterAtPoint(Point)

Gets a TimelineAppointmentsPresenter at a specified location.

Declaration
protected TimelineAppointmentsPresenter GetTimelinePresenterAtPoint(Point location)
Parameters
System.Drawing.Point location

The location in control coordinates.

Returns
TimelineAppointmentsPresenter

The TimelineAppointmentsPresenter at that location.

HandleMouseMove(Point)

Declaration
protected override void HandleMouseMove(Point mousePos)
Parameters
System.Drawing.Point mousePos

Overrides
RadDragDropService.HandleMouseMove(Point)

HandleMouseMoveOutsideControlBounds(Point, Rectangle)

Declaration
protected virtual void HandleMouseMoveOutsideControlBounds(Point mousePos, Rectangle controlRect)
Parameters
System.Drawing.Point mousePos

System.Drawing.Rectangle controlRect

HideFeedbacks()

Hides the active feedbacks.

Declaration
protected virtual bool HideFeedbacks()
Returns
System.Boolean

[true] if successful, [false] otherwise

InitializeSettings(AppointmentElement)

Declaration
protected virtual void InitializeSettings(AppointmentElement appointment)
Parameters
AppointmentElement appointment

IsElementOwner(SchedulerVisualElement)

Gets whether the element is found in the owners collection.

Declaration
public bool IsElementOwner(SchedulerVisualElement owner)
Parameters
SchedulerVisualElement owner

Returns
System.Boolean

IsRealDrag(Point, Point)

Gets whether this is a valid drag operation.

Declaration
public virtual bool IsRealDrag(Point mouseOffsetPosition, Point mouseDownPosition)
Parameters
System.Drawing.Point mouseOffsetPosition

System.Drawing.Point mouseDownPosition

Returns
System.Boolean

Move(DateTime, SchedulerCellElement, SchedulerVisualElement)

Moves the feedback to a specific date in a specific resource.

Declaration
public virtual bool Move(DateTime newDate, SchedulerCellElement cell, SchedulerVisualElement newOwner)
Parameters
System.DateTime newDate

The destination date.

SchedulerCellElement cell

The destination cell.

SchedulerVisualElement newOwner

The destination visual element.

Returns
System.Boolean

[true] if the move was performed, [false] otherwise

MoveFeedback(SchedulerVisualElement)

Moves the active feedback to a new owner.

Declaration
public virtual void MoveFeedback(SchedulerVisualElement newOwner)
Parameters
SchedulerVisualElement newOwner

The new owner of the feedback.

OnAppointmentDropped(AppointmentMovedEventArgs)

Declaration
protected virtual void OnAppointmentDropped(AppointmentMovedEventArgs args)
Parameters
AppointmentMovedEventArgs args

OnAppointmentDropping(AppointmentMovingEventArgs)

Declaration
protected virtual void OnAppointmentDropping(AppointmentMovingEventArgs args)
Parameters
AppointmentMovingEventArgs args

OnAppointmentMoved()

Declaration
protected virtual void OnAppointmentMoved()

OnAppointmentMovingEventArgs(AppointmentMovingEventArgs)

Declaration
protected virtual void OnAppointmentMovingEventArgs(AppointmentMovingEventArgs args)
Parameters
AppointmentMovingEventArgs args

OnFeedbackCreating(FeedbackCreatingEventArgs)

Declaration
protected virtual void OnFeedbackCreating(FeedbackCreatingEventArgs args)
Parameters
FeedbackCreatingEventArgs args

OnInitializing(FeedbackInitializingEventArgs)

Declaration
protected virtual void OnInitializing(FeedbackInitializingEventArgs args)
Parameters
FeedbackInitializingEventArgs args

OnPreviewDragDrop(RadDropEventArgs)

Declaration
protected override void OnPreviewDragDrop(RadDropEventArgs e)
Parameters
RadDropEventArgs e

Overrides
RadDragDropService.OnPreviewDragDrop(RadDropEventArgs)

OnPreviewDragHint(PreviewDragHintEventArgs)

Declaration
protected override void OnPreviewDragHint(PreviewDragHintEventArgs e)
Parameters
PreviewDragHintEventArgs e

Overrides
RadDragDropService.OnPreviewDragHint(PreviewDragHintEventArgs)

OnPreviewDragOver(RadDragOverEventArgs)

Declaration
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters
RadDragOverEventArgs e

Overrides
RadDragDropService.OnPreviewDragOver(RadDragOverEventArgs)

PerformStop()

Declaration
protected override void PerformStop()
Overrides
RadDragDropService.PerformStop()

PrepareAppointment(IEvent)

Declaration
protected virtual IEvent PrepareAppointment(IEvent appointment)
Parameters
IEvent appointment

Returns
IEvent

RemoveFeedback(SchedulerVisualElement)

Removes the visual feedback. Cancels the drag operation.

Declaration
public virtual bool RemoveFeedback(SchedulerVisualElement owner)
Parameters
SchedulerVisualElement owner

Returns
System.Boolean

ResetAppointmentVisibility(IEvent)

Declaration
protected void ResetAppointmentVisibility(IEvent appointment)
Parameters
IEvent appointment

ResetCellsHoverState()

Declaration
protected virtual void ResetCellsHoverState()

SetAppointmentVisibility(IEvent, ElementVisibility)

Declaration
protected void SetAppointmentVisibility(IEvent appointment, ElementVisibility visibility)
Parameters
IEvent appointment

ElementVisibility visibility

ValidateOccurrenceDropTarget(DateTime, DateTime, Boolean)

Declaration
protected virtual bool ValidateOccurrenceDropTarget(DateTime targetStartDate, DateTime targetEndDate, bool allDay)
Parameters
System.DateTime targetStartDate

System.DateTime targetEndDate

System.Boolean allDay

Returns
System.Boolean

Events

AppointmentDropped

Occurs when drag drop has finished.

Declaration
public event EventHandler<AppointmentMovedEventArgs> AppointmentDropped
Event Type
System.EventHandler<AppointmentMovedEventArgs>

AppointmentDropping

Occurs when drag drop is finishing.

Declaration
public event EventHandler<AppointmentMovingEventArgs> AppointmentDropping
Event Type
System.EventHandler<AppointmentMovingEventArgs>

AppointmentMoved

Occurs when an appointment is moved.

Declaration
public event EventHandler AppointmentMoved
Event Type
System.EventHandler

AppointmentMoving

Occurs when an appointment is moving.

Declaration
public event EventHandler<AppointmentMovingEventArgs> AppointmentMoving
Event Type
System.EventHandler<AppointmentMovingEventArgs>

FeedbackCreating

Occurs when the feedback is creating.

Declaration
public event EventHandler<FeedbackCreatingEventArgs> FeedbackCreating
Event Type
System.EventHandler<FeedbackCreatingEventArgs>

FeedbackInitialized

Occurs when the feedback is initialized.

Declaration
public event EventHandler<FeedbackInitializingEventArgs> FeedbackInitialized
Event Type
System.EventHandler<FeedbackInitializingEventArgs>

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.