RadGanttView
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GanttView.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class RadGanttView : Control, ISelectorInteraction, IScrollingInfo, IScrollingServiceCore, IObjectEditingObserver
Inheritance: objectRadGanttView
Implements:
Constructors
public RadGanttView()
Fields
AutoSizeTimelineProperty
DependencyProperty
Identifies the AutoSizeTimeline dependency property.
public static readonly DependencyProperty AutoSizeTimelineProperty
ColumnsProperty
DependencyProperty
Identifies the ColumnsProperty dependency property.
public static readonly DependencyProperty ColumnsProperty
DataConverterProperty
DependencyProperty
Identifies the DataConverter dependency property.
public static readonly DependencyProperty DataConverterProperty
DragDependenciesBehaviorProperty
DependencyProperty
Identifies the DragDependenciesBehavior dependency property.
public static readonly DependencyProperty DragDependenciesBehaviorProperty
DragDropBehaviorProperty
DependencyProperty
Identifies the DragDropBehavior dependency property.
public static readonly DependencyProperty DragDropBehaviorProperty
DragVisualStyleProperty
DependencyProperty
Identifies the DragVisualStyle dependency property.
public static readonly DependencyProperty DragVisualStyleProperty
EditRecurrenceCommand
RoutedUICommand
Identifies the command that opens recurrence editing for a recurring task series.
public static readonly RoutedUICommand EditRecurrenceCommand
FirstDayOfWeekProperty
DependencyProperty
Identifies the FirstDayOfWeek dependency property.
public static readonly DependencyProperty FirstDayOfWeekProperty
GapBetweenColumnsProperty
DependencyProperty
Identifies the GapBetweenColumns dependency property.
public static readonly DependencyProperty GapBetweenColumnsProperty
GapBetweenRowsProperty
DependencyProperty
Identifies the GapBetweenRows dependency property.
public static readonly DependencyProperty GapBetweenRowsProperty
HighlightedItemsSourceProperty
DependencyProperty
Identifies the HighlightedItemsSource dependency property.
public static readonly DependencyProperty HighlightedItemsSourceProperty
HighlightsBehaviorProperty
DependencyProperty
Identifies the HighlightsBehavior dependency property.
public static readonly DependencyProperty HighlightsBehaviorProperty
InitialExpandBehaviorProperty
DependencyProperty
Identifies the InitialExpandBehavior dependency property.
public static readonly DependencyProperty InitialExpandBehaviorProperty
PixelLengthProperty
DependencyProperty
Identifies the PixelLength dependency property.
public static readonly DependencyProperty PixelLengthProperty
RecurrenceEditingEvent
RoutedEvent
Identifies the RecurrenceEditing routed event.
public static readonly RoutedEvent RecurrenceEditingEvent
RecurringSeriesDeletingEvent
RoutedEvent
Identifies the RecurringSeriesDeleting routed event.
public static readonly RoutedEvent RecurringSeriesDeletingEvent
RecurringTaskEditingEvent
RoutedEvent
Identifies the RecurringTaskEditing routed event.
public static readonly RoutedEvent RecurringTaskEditingEvent
ResizeBehaviorProperty
DependencyProperty
Identifies the ResizeBehavior dependency property.
public static readonly DependencyProperty ResizeBehaviorProperty
ResizeVisualStyleProperty
DependencyProperty
Identifies the ResizeVisualStyle dependency property.
public static readonly DependencyProperty ResizeVisualStyleProperty
SelectedItemProperty
DependencyProperty
Identifies the SelectedItem dependency property.
public static readonly DependencyProperty SelectedItemProperty
SelectionBehaviorProperty
DependencyProperty
Identifies the SelectionBehavior dependency property.
public static readonly DependencyProperty SelectionBehaviorProperty
SelectionChangedEvent
RoutedEvent
Identifies the SelectionChanged routed event.
public static readonly RoutedEvent SelectionChangedEvent
ShowCurrentHourIndicatorProperty
DependencyProperty
Identifies the ShowCurrentHourIndicator dependency property.
public static readonly DependencyProperty ShowCurrentHourIndicatorProperty
ShowRecurringTaskSummaryProperty
DependencyProperty
Identifies the ShowRecurringTaskSummary dependency property.
public static readonly DependencyProperty ShowRecurringTaskSummaryProperty
SpecialSlotsGeneratorProperty
DependencyProperty
Identifies the SpecialSlotsGenerator dependency property.
public static readonly DependencyProperty SpecialSlotsGeneratorProperty
TaskEditedEvent
RoutedEvent
Identifies the TaskEdited event.
public static readonly RoutedEvent TaskEditedEvent
TaskEditingEvent
RoutedEvent
Identifies the TaskEditing event.
public static readonly RoutedEvent TaskEditingEvent
TaskRowKeySelectorProperty
DependencyProperty
Identifies the TaskRowKeySelector dependency property.
public static readonly DependencyProperty TaskRowKeySelectorProperty
TaskSavingEvent
RoutedEvent
Identifies the TaskSaving event.
public static readonly RoutedEvent TaskSavingEvent
TasksSourceProperty
DependencyProperty
Identifies the TasksSource dependency property.
public static readonly DependencyProperty TasksSourceProperty
TimeLineContainerSelectorProperty
DependencyProperty
Identifies the TimelineContainerSelector dependency property.
public static readonly DependencyProperty TimeLineContainerSelectorProperty
TimeLineFilteringBehaviorProperty
DependencyProperty
Identifies the TimeLineFilteringBehavior dependency property.
public static readonly DependencyProperty TimeLineFilteringBehaviorProperty
TimeLineVisualizationBehaviorProperty
DependencyProperty
Identifies the TimeLineVisualizationBehavior dependency property.
public static readonly DependencyProperty TimeLineVisualizationBehaviorProperty
TimeRulerContainerSelectorProperty
DependencyProperty
Identifies the TimeRulerContainerSelector dependency property.
public static readonly DependencyProperty TimeRulerContainerSelectorProperty
TimeRulerLinesProperty
DependencyProperty
Identifies the TimeRulerLines dependency property.
public static readonly DependencyProperty TimeRulerLinesProperty
TimeRulerVisualizationBehaviorProperty
DependencyProperty
Identifies the TimeRulerVisualizationBehavior dependency property.
public static readonly DependencyProperty TimeRulerVisualizationBehaviorProperty
VisibleRangeProperty
DependencyProperty
Identifies the VisibleRange dependency property.
public static readonly DependencyProperty VisibleRangeProperty
Properties
public bool AutoSizeTimeline { get; set; }
public ColumnDefinitionCollection Columns { get; }
public DataConverter DataConverter { get; set; }
Gets or sets the drag dependencies behavior that defines how RadGanttView will perform creating dependencies with mouse.
public ISchedulingLinkBehavior DragDependenciesBehavior { get; set; }
Gets or sets the drag-drop behavior that defines how RadGanttView will perform drag.
public ISchedulingDragDropBehavior DragDropBehavior { get; set; }
DragVisualStyle
Style
Gets or sets the DragVisualStyle property. It defines the look and behavior for the visual element that is displayed when dragging tasks. The default value is null. This is a dependency property.
public Style DragVisualStyle { get; set; }
public ExpandCollapseService ExpandCollapseService { get; }
Gets the service, responsible for image exporting.
public ImageExportingService ExportingService { get; }
Gets or sets the FirstDayOfWeek. This is a dependency property.
public DayOfWeek FirstDayOfWeek { get; set; }
Gets or sets the distance between two consecutive columns. This is a dependency property.
public double GapBetweenColumns { get; set; }
Gets or sets the distance between two consecutive rows. This is a dependency property.
public double GapBetweenRows { get; set; }
public IEnumerable HighlightedItemsSource { get; set; }
Gets or sets the behavior used to highlight tasks in the Gantt view.
public HighlightBehavior HighlightsBehavior { get; set; }
public IInitialExpandBehavior InitialExpandBehavior { get; set; }
Gets or sets the time interval represented by a pixel. This is a dependency property.
public TimeSpan PixelLength { get; set; }
Gets or sets the resize behavior that defines how RadGanttView will perform resize.
public ISchedulingResizeBehavior ResizeBehavior { get; set; }
ResizeVisualStyle
Style
Gets or sets the resize visual style.
public Style ResizeVisualStyle { get; set; }
The resize visual style.
Gets the GanttScrollingService used by the RadGanttView.
public GanttScrollingService ScrollingService { get; }
public object SelectedItem { get; set; }
public IList SelectedItems { get; }
public ISelectionBehavior SelectionBehavior { get; set; }
Gets or sets the ShowCurrentHourIndicator. This is a dependency property.
public bool ShowCurrentHourIndicator { get; set; }
Gets or sets whether recurring series summary bars are displayed on the timeline. The default value is true. This is a dependency property.
public bool ShowRecurringTaskSummary { get; set; }
public IRangeGenerator SpecialSlotsGenerator { get; set; }
Gets or sets a function that returns the key used to group tasks into projected rows.
public Func<IGanttTask, object> TaskRowKeySelector { get; set; }
public IEnumerable TasksSource { get; set; }
Gets or sets the TimelineContainerSelector. This is a dependency property.
public IContainerSelector TimelineContainerSelector { get; set; }
public IRangeGenerator TimeLineFilteringBehavior { get; set; }
public ITimeLineVisualizationBehavior TimeLineVisualizationBehavior { get; set; }
Gets or sets the TimeRulerContainerSelector. This is a dependency property.
public IContainerSelector TimeRulerContainerSelector { get; set; }
Gets or sets the TimeRulerLines. This is a dependency property.
public TimeRulerLineCollection TimeRulerLines { get; }
Gets or sets the TimeRulerBehavior. This is a dependency property.
public ITimeRulerVisualizationBehavior TimeRulerVisualizationBehavior { get; set; }
Gets or sets the VisibleRange. This is a dependency property.
public IDateRange VisibleRange { get; set; }
Methods
Prompts for applying an edit or deletion to one occurrence or the entire series.
protected virtual GanttRecurrenceEditScope? ChooseRecurrenceScope(GanttTaskOccurrence occurrence, bool deleting)
The occurrence initiating the operation.
deletingboolWhether the operation deletes rather than edits tasks.
Returns:The selected scope, or null if canceled.
Deletes one occurrence or raises a request to delete its entire series.
public bool DeleteOccurrence(GanttTaskOccurrence occurrence, GanttRecurrenceEditScope scope)
The occurrence initiating deletion.
scopeGanttRecurrenceEditScopeWhether to delete the occurrence or its series.
Returns:Whether the occurrence was deleted or the series deletion request was handled.
Exceptions: ArgumentNullExceptionoccurrence is null.
scope is not a supported scope.
An occurrence dependency prevents deletion.
Deletes an occurrence from its recurring series.
public bool DeleteOccurrence(GanttTaskOccurrence occurrence)
The occurrence to delete.
Returns:true if the occurrence was deleted; otherwise, false if the operation was canceled.
Exceptions: ArgumentNullExceptionoccurrence is null.
Raises the recurrence-editing event and, unless the edit is canceled or handled, displays the recurrence dialog.
public bool EditRecurrence(RecurringGanttTask series)
The recurring task series to edit.
Returns:true if the recurrence edit was committed; otherwise, false.
Exceptions: ArgumentNullExceptionseries is null.
Gets the data item.
public object GetDataItem(UIElement container)
Implements:
public override void OnApplyTemplate()
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the selection changes.
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
The event data.
Resets the theme.
public void ResetTheme()
Restores a previously deleted occurrence in a recurring series.
public void RestoreOccurrence(RecurringGanttTask series, DateTime originalStart)
The series containing the occurrence.
originalStartDateTimeThe original scheduled start of the occurrence.
Exceptions: ArgumentNullExceptionseries is null.
originalStart does not identify an occurrence in the series.
Displays the editing dialog for one recurring task occurrence.
protected virtual bool ShowOccurrenceDialog(GanttTaskOccurrence occurrence, Func<string, DateTime, DateTime, bool> commit)
The occurrence to edit.
commitFunc<string, DateTime, DateTime, bool>The callback that commits the title, start, and end values.
Returns:Whether the dialog accepted and committed the edit.
Displays the recurrence settings dialog for a series.
protected virtual bool ShowRecurrenceDialog(RecurrenceEditingEventArgs args, Func<bool> commit)
The pending recurrence settings.
commitFunc<bool>The callback that validates and commits the edit.
Returns:Whether the dialog accepted and committed the edit.
Events
Occurs when the recurrence settings of a series are about to be edited.
public event EventHandler<RecurrenceEditingEventArgs> RecurrenceEditing
Occurs when deletion of an entire recurring series is requested. Set after removing the series from the task source.
public event EventHandler<RecurringSeriesDeletingEventArgs> RecurringSeriesDeleting
Occurs when an occurrence of a recurring task is about to be edited.
public event EventHandler<RecurringTaskEditingEventArgs> RecurringTaskEditing
SelectionChanged
SelectionChangedEventHandler
Occurs when the selection of a Selector changes.
public event SelectionChangedEventHandler SelectionChanged
Raised when a task has been edited through the UI.
public event EventHandler<TaskEditedEventArgs> TaskEdited
Raised when a task editing is initiated through the UI.
public event EventHandler<TaskEditingEventArgs> TaskEditing
Raised when edit operation through the UI is being committed.
public event EventHandler<TaskEditingEventArgs> TaskSaving