Class AppointmentDraggingBehavior
Inheritance
Inherited Members
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
Rad
|
AppointmentDraggingBehavior(SchedulerVisualElement)
Declaration
public AppointmentDraggingBehavior(SchedulerVisualElement activeOwner)
Parameters
Scheduler
|
Properties
ActiveFeedback
Gets the active feedback.
Declaration
public DragFeedbackElement ActiveFeedback { get; }
Property Value
ActiveOwner
Gets the behavior's active owner.
Declaration
public SchedulerVisualElement ActiveOwner { get; }
Property Value
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.
|
DragNavigationInterval
DragNavigationOffset
IsDragging
Indicates whether there is an active drag operation.
Declaration
public bool IsDragging { get; }
Property Value
System.
|
Scheduler
The Rad
Declaration
public RadScheduler Scheduler { get; }
Property Value
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.
|
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.
|
Methods
AddToOwnerCollection()
Adds the active feedback to the active owner.
Declaration
public virtual bool AddToOwnerCollection()
Returns
System.
|
BeginDrag(SchedulerVisualElement, AppointmentElement)
Request move operation.
Declaration
public bool BeginDrag(SchedulerVisualElement newOwner, AppointmentElement appointment)
Parameters
Scheduler
|
Appointment
|
Returns
System.
|
CanStart(Object)
Declaration
protected override bool CanStart(object context)
Parameters
System.
|
Returns
System.
|
Overrides
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
Rad
|
Scheduler
|
Appointment
|
Returns
DoDragOver(Point)
Handles dragging the active feedback to a given point.
Declaration
public void DoDragOver(Point controlDropLocation)
Parameters
System. The destination point in control coordinates. |
Drop()
Handles the Drop operation.
Declaration
public virtual void Drop()
GetAllDayHeaderAtPoint(Point)
Gets a Day
Declaration
protected DayViewAllDayHeader GetAllDayHeaderAtPoint(Point location)
Parameters
System. The location in control coordinates. |
Returns
Day The Day |
GetCellAtPoint(Point)
Gets a Scheduler
Declaration
protected SchedulerCellElement GetCellAtPoint(Point location)
Parameters
System. The location in control coordinates. |
Returns
Scheduler The Scheduler |
GetCellDate(SchedulerCellElement)
Gets the destination date for an appointment that was dropped on a given cell.
Declaration
protected virtual DateTime GetCellDate(SchedulerCellElement cell)
Parameters
Scheduler The Scheduler |
Returns
System. The destination date. |
GetDayViewTableAtPoint(Point)
Gets a Day
Declaration
protected DayViewAppointmentsTable GetDayViewTableAtPoint(Point location)
Parameters
System. The location in control coordinates. |
Returns
Day The Day |
GetFeedback(SchedulerVisualElement)
Gets a specific feedback.
Declaration
public DragFeedbackElement GetFeedback(SchedulerVisualElement feedbackOwnerElement)
Parameters
Scheduler
|
Returns
GetMonthViewAreaAtPoint(Point)
Gets a Month
Declaration
protected MonthViewAreaElement GetMonthViewAreaAtPoint(Point location)
Parameters
System. The location in control coordinates. |
Returns
Month The Month |
GetTimelinePresenterAtPoint(Point)
Gets a Timeline
Declaration
protected TimelineAppointmentsPresenter GetTimelinePresenterAtPoint(Point location)
Parameters
System. The location in control coordinates. |
Returns
Timeline The Timeline |
HandleMouseMove(Point)
Declaration
protected override void HandleMouseMove(Point mousePos)
Parameters
System.
|
Overrides
HandleMouseMoveOutsideControlBounds(Point, Rectangle)
Declaration
protected virtual void HandleMouseMoveOutsideControlBounds(Point mousePos, Rectangle controlRect)
Parameters
System.
|
System.
|
HideFeedbacks()
Hides the active feedbacks.
Declaration
protected virtual bool HideFeedbacks()
Returns
System. [true] if successful, [false] otherwise |
InitializeSettings(AppointmentElement)
Declaration
protected virtual void InitializeSettings(AppointmentElement appointment)
Parameters
Appointment
|
IsElementOwner(SchedulerVisualElement)
Gets whether the element is found in the owners collection.
Declaration
public bool IsElementOwner(SchedulerVisualElement owner)
Parameters
Scheduler
|
Returns
System.
|
IsRealDrag(Point, Point)
Gets whether this is a valid drag operation.
Declaration
public virtual bool IsRealDrag(Point mouseOffsetPosition, Point mouseDownPosition)
Parameters
System.
|
System.
|
Returns
System.
|
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. The destination date. |
Scheduler The destination cell. |
Scheduler The destination visual element. |
Returns
System. [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
Scheduler The new owner of the feedback. |
OnAppointmentDropped(AppointmentMovedEventArgs)
Declaration
protected virtual void OnAppointmentDropped(AppointmentMovedEventArgs args)
Parameters
OnAppointmentDropping(AppointmentMovingEventArgs)
Declaration
protected virtual void OnAppointmentDropping(AppointmentMovingEventArgs args)
Parameters
OnAppointmentMoved()
Declaration
protected virtual void OnAppointmentMoved()
OnAppointmentMovingEventArgs(AppointmentMovingEventArgs)
Declaration
protected virtual void OnAppointmentMovingEventArgs(AppointmentMovingEventArgs args)
Parameters
OnFeedbackCreating(FeedbackCreatingEventArgs)
Declaration
protected virtual void OnFeedbackCreating(FeedbackCreatingEventArgs args)
Parameters
OnInitializing(FeedbackInitializingEventArgs)
Declaration
protected virtual void OnInitializing(FeedbackInitializingEventArgs args)
Parameters
OnPreviewDragDrop(RadDropEventArgs)
Declaration
protected override void OnPreviewDragDrop(RadDropEventArgs e)
Parameters
Overrides
OnPreviewDragHint(PreviewDragHintEventArgs)
Declaration
protected override void OnPreviewDragHint(PreviewDragHintEventArgs e)
Parameters
Overrides
OnPreviewDragOver(RadDragOverEventArgs)
Declaration
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters
Overrides
PerformStop()
PrepareAppointment(IEvent)
Declaration
protected virtual IEvent PrepareAppointment(IEvent appointment)
Parameters
IEvent
appointment
|
Returns
RemoveFeedback(SchedulerVisualElement)
Removes the visual feedback. Cancels the drag operation.
Declaration
public virtual bool RemoveFeedback(SchedulerVisualElement owner)
Parameters
Scheduler
|
Returns
System.
|
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
|
Element
|
ValidateOccurrenceDropTarget(DateTime, DateTime, Boolean)
Declaration
protected virtual bool ValidateOccurrenceDropTarget(DateTime targetStartDate, DateTime targetEndDate, bool allDay)
Parameters
System.
|
System.
|
System.
|
Returns
System.
|
Events
AppointmentDropped
Occurs when drag drop has finished.
Declaration
public event EventHandler<AppointmentMovedEventArgs> AppointmentDropped
Event Type
System.
|
AppointmentDropping
Occurs when drag drop is finishing.
Declaration
public event EventHandler<AppointmentMovingEventArgs> AppointmentDropping
Event Type
System.
|
AppointmentMoved
Occurs when an appointment is moved.
Declaration
public event EventHandler AppointmentMoved
Event Type
System.
|
AppointmentMoving
Occurs when an appointment is moving.
Declaration
public event EventHandler<AppointmentMovingEventArgs> AppointmentMoving
Event Type
System.
|
FeedbackCreating
Occurs when the feedback is creating.
Declaration
public event EventHandler<FeedbackCreatingEventArgs> FeedbackCreating
Event Type
System.
|
FeedbackInitialized
Occurs when the feedback is initialized.
Declaration
public event EventHandler<FeedbackInitializingEventArgs> FeedbackInitialized
Event Type
System.
|