New to Telerik UI for WPF? Start a free 30-day trial

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.GanttView.dll

Syntax:

C#
[TelerikToolboxCategory("Data")]
public class RadGanttView : Control, ISelectorInteraction, IScrollingInfo, IScrollingServiceCore, IObjectEditingObserver

Inheritance: objectRadGanttView

Implements: IObjectEditingObserverIScrollingInfoIScrollingServiceCoreISelectorInteraction

Constructors

C#
public RadGanttView()

Fields

AutoSizeTimelineProperty

DependencyProperty

Identifies the AutoSizeTimeline dependency property.

C#
public static readonly DependencyProperty AutoSizeTimelineProperty

ColumnsProperty

DependencyProperty

Identifies the ColumnsProperty dependency property.

C#
public static readonly DependencyProperty ColumnsProperty

DataConverterProperty

DependencyProperty

Identifies the DataConverter dependency property.

C#
public static readonly DependencyProperty DataConverterProperty

Identifies the DragDependenciesBehavior dependency property.

C#
public static readonly DependencyProperty DragDependenciesBehaviorProperty

DragDropBehaviorProperty

DependencyProperty

Identifies the DragDropBehavior dependency property.

C#
public static readonly DependencyProperty DragDropBehaviorProperty

DragVisualStyleProperty

DependencyProperty

Identifies the DragVisualStyle dependency property.

C#
public static readonly DependencyProperty DragVisualStyleProperty

EditRecurrenceCommand

RoutedUICommand

Identifies the command that opens recurrence editing for a recurring task series.

C#
public static readonly RoutedUICommand EditRecurrenceCommand

FirstDayOfWeekProperty

DependencyProperty

Identifies the FirstDayOfWeek dependency property.

C#
public static readonly DependencyProperty FirstDayOfWeekProperty

GapBetweenColumnsProperty

DependencyProperty

Identifies the GapBetweenColumns dependency property.

C#
public static readonly DependencyProperty GapBetweenColumnsProperty

GapBetweenRowsProperty

DependencyProperty

Identifies the GapBetweenRows dependency property.

C#
public static readonly DependencyProperty GapBetweenRowsProperty

Identifies the HighlightedItemsSource dependency property.

C#
public static readonly DependencyProperty HighlightedItemsSourceProperty

HighlightsBehaviorProperty

DependencyProperty

Identifies the HighlightsBehavior dependency property.

C#
public static readonly DependencyProperty HighlightsBehaviorProperty

Identifies the InitialExpandBehavior dependency property.

C#
public static readonly DependencyProperty InitialExpandBehaviorProperty

PixelLengthProperty

DependencyProperty

Identifies the PixelLength dependency property.

C#
public static readonly DependencyProperty PixelLengthProperty

Identifies the RecurrenceEditing routed event.

C#
public static readonly RoutedEvent RecurrenceEditingEvent

Identifies the RecurringSeriesDeleting routed event.

C#
public static readonly RoutedEvent RecurringSeriesDeletingEvent

Identifies the RecurringTaskEditing routed event.

C#
public static readonly RoutedEvent RecurringTaskEditingEvent

ResizeBehaviorProperty

DependencyProperty

Identifies the ResizeBehavior dependency property.

C#
public static readonly DependencyProperty ResizeBehaviorProperty

ResizeVisualStyleProperty

DependencyProperty

Identifies the ResizeVisualStyle dependency property.

C#
public static readonly DependencyProperty ResizeVisualStyleProperty

SelectedItemProperty

DependencyProperty

Identifies the SelectedItem dependency property.

C#
public static readonly DependencyProperty SelectedItemProperty

SelectionBehaviorProperty

DependencyProperty

Identifies the SelectionBehavior dependency property.

C#
public static readonly DependencyProperty SelectionBehaviorProperty

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

Identifies the ShowCurrentHourIndicator dependency property.

C#
public static readonly DependencyProperty ShowCurrentHourIndicatorProperty

Identifies the ShowRecurringTaskSummary dependency property.

C#
public static readonly DependencyProperty ShowRecurringTaskSummaryProperty

Identifies the SpecialSlotsGenerator dependency property.

C#
public static readonly DependencyProperty SpecialSlotsGeneratorProperty

TaskEditedEvent

RoutedEvent

Identifies the TaskEdited event.

C#
public static readonly RoutedEvent TaskEditedEvent

TaskEditingEvent

RoutedEvent

Identifies the TaskEditing event.

C#
public static readonly RoutedEvent TaskEditingEvent

TaskRowKeySelectorProperty

DependencyProperty

Identifies the TaskRowKeySelector dependency property.

C#
public static readonly DependencyProperty TaskRowKeySelectorProperty

TaskSavingEvent

RoutedEvent

Identifies the TaskSaving event.

C#
public static readonly RoutedEvent TaskSavingEvent

TasksSourceProperty

DependencyProperty

Identifies the TasksSource dependency property.

C#
public static readonly DependencyProperty TasksSourceProperty

Identifies the TimelineContainerSelector dependency property.

C#
public static readonly DependencyProperty TimeLineContainerSelectorProperty

Identifies the TimeLineFilteringBehavior dependency property.

C#
public static readonly DependencyProperty TimeLineFilteringBehaviorProperty

Identifies the TimeLineVisualizationBehavior dependency property.

C#
public static readonly DependencyProperty TimeLineVisualizationBehaviorProperty

Identifies the TimeRulerContainerSelector dependency property.

C#
public static readonly DependencyProperty TimeRulerContainerSelectorProperty

TimeRulerLinesProperty

DependencyProperty

Identifies the TimeRulerLines dependency property.

C#
public static readonly DependencyProperty TimeRulerLinesProperty

Identifies the TimeRulerVisualizationBehavior dependency property.

C#
public static readonly DependencyProperty TimeRulerVisualizationBehaviorProperty

VisibleRangeProperty

DependencyProperty

Identifies the VisibleRange dependency property.

C#
public static readonly DependencyProperty VisibleRangeProperty

Properties

C#
public bool AutoSizeTimeline { get; set; }
C#
public ColumnDefinitionCollection Columns { get; }
C#
public DataConverter DataConverter { get; set; }

Gets or sets the drag dependencies behavior that defines how RadGanttView will perform creating dependencies with mouse.

C#
public ISchedulingLinkBehavior DragDependenciesBehavior { get; set; }

Gets or sets the drag-drop behavior that defines how RadGanttView will perform drag.

C#
public ISchedulingDragDropBehavior DragDropBehavior { get; set; }

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.

C#
public Style DragVisualStyle { get; set; }
C#
public ExpandCollapseService ExpandCollapseService { get; }

Gets the service, responsible for image exporting.

C#
public ImageExportingService ExportingService { get; }

Gets or sets the FirstDayOfWeek. This is a dependency property.

C#
public DayOfWeek FirstDayOfWeek { get; set; }

Gets or sets the distance between two consecutive columns. This is a dependency property.

C#
public double GapBetweenColumns { get; set; }

Gets or sets the distance between two consecutive rows. This is a dependency property.

C#
public double GapBetweenRows { get; set; }
C#
public IEnumerable HighlightedItemsSource { get; set; }

Gets or sets the behavior used to highlight tasks in the Gantt view.

C#
public HighlightBehavior HighlightsBehavior { get; set; }
C#
public IInitialExpandBehavior InitialExpandBehavior { get; set; }

Gets or sets the time interval represented by a pixel. This is a dependency property.

C#
public TimeSpan PixelLength { get; set; }

Gets or sets the resize behavior that defines how RadGanttView will perform resize.

C#
public ISchedulingResizeBehavior ResizeBehavior { get; set; }

Gets or sets the resize visual style.

C#
public Style ResizeVisualStyle { get; set; }
Property Value:

The resize visual style.

Gets the GanttScrollingService used by the RadGanttView.

C#
public GanttScrollingService ScrollingService { get; }
C#
public object SelectedItem { get; set; }
C#
public IList SelectedItems { get; }
C#
public ISelectionBehavior SelectionBehavior { get; set; }

Gets or sets the ShowCurrentHourIndicator. This is a dependency property.

C#
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.

C#
public bool ShowRecurringTaskSummary { get; set; }
C#
public IRangeGenerator SpecialSlotsGenerator { get; set; }

Gets or sets a function that returns the key used to group tasks into projected rows.

C#
public Func<IGanttTask, object> TaskRowKeySelector { get; set; }
C#
public IEnumerable TasksSource { get; set; }

Gets or sets the TimelineContainerSelector. This is a dependency property.

C#
public IContainerSelector TimelineContainerSelector { get; set; }
C#
public IRangeGenerator TimeLineFilteringBehavior { get; set; }
C#
public ITimeLineVisualizationBehavior TimeLineVisualizationBehavior { get; set; }

Gets or sets the TimeRulerContainerSelector. This is a dependency property.

C#
public IContainerSelector TimeRulerContainerSelector { get; set; }

Gets or sets the TimeRulerLines. This is a dependency property.

C#
public TimeRulerLineCollection TimeRulerLines { get; }

Gets or sets the TimeRulerBehavior. This is a dependency property.

C#
public ITimeRulerVisualizationBehavior TimeRulerVisualizationBehavior { get; set; }

Gets or sets the VisibleRange. This is a dependency property.

C#
public IDateRange VisibleRange { get; set; }

Methods

Prompts for applying an edit or deletion to one occurrence or the entire series.

C#
protected virtual GanttRecurrenceEditScope? ChooseRecurrenceScope(GanttTaskOccurrence occurrence, bool deleting)
Parameters:occurrenceGanttTaskOccurrence

The occurrence initiating the operation.

deletingbool

Whether the operation deletes rather than edits tasks.

Returns:

GanttRecurrenceEditScope?

The selected scope, or null if canceled.

Deletes one occurrence or raises a request to delete its entire series.

C#
public bool DeleteOccurrence(GanttTaskOccurrence occurrence, GanttRecurrenceEditScope scope)
Parameters:occurrenceGanttTaskOccurrence

The occurrence initiating deletion.

scopeGanttRecurrenceEditScope

Whether to delete the occurrence or its series.

Returns:

bool

Whether the occurrence was deleted or the series deletion request was handled.

Exceptions: ArgumentNullException

occurrence is null.

ArgumentOutOfRangeException

scope is not a supported scope.

InvalidOperationException

An occurrence dependency prevents deletion.

Deletes an occurrence from its recurring series.

C#
public bool DeleteOccurrence(GanttTaskOccurrence occurrence)
Parameters:occurrenceGanttTaskOccurrence

The occurrence to delete.

Returns:

bool

true if the occurrence was deleted; otherwise, false if the operation was canceled.

Exceptions: ArgumentNullException

occurrence is null.

Raises the recurrence-editing event and, unless the edit is canceled or handled, displays the recurrence dialog.

C#
public bool EditRecurrence(RecurringGanttTask series)
Parameters:seriesRecurringGanttTask

The recurring task series to edit.

Returns:

bool

true if the recurrence edit was committed; otherwise, false.

Exceptions: ArgumentNullException

series is null.

Gets the data item.

C#
public object GetDataItem(UIElement container)
Parameters:containerUIElementReturns:

object

Implements: ISelectorInteraction.GetDataItem(UIElement)

C#
public override void OnApplyTemplate()
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the selection changes.

C#
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

The event data.

Resets the theme.

C#
public void ResetTheme()

Restores a previously deleted occurrence in a recurring series.

C#
public void RestoreOccurrence(RecurringGanttTask series, DateTime originalStart)
Parameters:seriesRecurringGanttTask

The series containing the occurrence.

originalStartDateTime

The original scheduled start of the occurrence.

Exceptions: ArgumentNullException

series is null.

ArgumentException

originalStart does not identify an occurrence in the series.

Displays the editing dialog for one recurring task occurrence.

C#
protected virtual bool ShowOccurrenceDialog(GanttTaskOccurrence occurrence, Func<string, DateTime, DateTime, bool> commit)
Parameters:occurrenceGanttTaskOccurrence

The occurrence to edit.

commitFunc<string, DateTime, DateTime, bool>

The callback that commits the title, start, and end values.

Returns:

bool

Whether the dialog accepted and committed the edit.

Displays the recurrence settings dialog for a series.

C#
protected virtual bool ShowRecurrenceDialog(RecurrenceEditingEventArgs args, Func<bool> commit)
Parameters:argsRecurrenceEditingEventArgs

The pending recurrence settings.

commitFunc<bool>

The callback that validates and commits the edit.

Returns:

bool

Whether the dialog accepted and committed the edit.

Events

Occurs when the recurrence settings of a series are about to be edited.

C#
public event EventHandler<RecurrenceEditingEventArgs> RecurrenceEditing

Occurs when deletion of an entire recurring series is requested. Set after removing the series from the task source.

C#
public event EventHandler<RecurringSeriesDeletingEventArgs> RecurringSeriesDeleting

Occurs when an occurrence of a recurring task is about to be edited.

C#
public event EventHandler<RecurringTaskEditingEventArgs> RecurringTaskEditing

SelectionChanged

SelectionChangedEventHandler

Occurs when the selection of a Selector changes.

C#
public event SelectionChangedEventHandler SelectionChanged

Raised when a task has been edited through the UI.

C#
public event EventHandler<TaskEditedEventArgs> TaskEdited

Raised when a task editing is initiated through the UI.

C#
public event EventHandler<TaskEditingEventArgs> TaskEditing

Raised when edit operation through the UI is being committed.

C#
public event EventHandler<TaskEditingEventArgs> TaskSaving
In this article
DefinitionConstructorsRadGanttView()FieldsAutoSizeTimelinePropertyColumnsPropertyDataConverterPropertyDragDependenciesBehaviorPropertyDragDropBehaviorPropertyDragVisualStylePropertyEditRecurrenceCommandFirstDayOfWeekPropertyGapBetweenColumnsPropertyGapBetweenRowsPropertyHighlightedItemsSourcePropertyHighlightsBehaviorPropertyInitialExpandBehaviorPropertyPixelLengthPropertyRecurrenceEditingEventRecurringSeriesDeletingEventRecurringTaskEditingEventResizeBehaviorPropertyResizeVisualStylePropertySelectedItemPropertySelectionBehaviorPropertySelectionChangedEventShowCurrentHourIndicatorPropertyShowRecurringTaskSummaryPropertySpecialSlotsGeneratorPropertyTaskEditedEventTaskEditingEventTaskRowKeySelectorPropertyTaskSavingEventTasksSourcePropertyTimeLineContainerSelectorPropertyTimeLineFilteringBehaviorPropertyTimeLineVisualizationBehaviorPropertyTimeRulerContainerSelectorPropertyTimeRulerLinesPropertyTimeRulerVisualizationBehaviorPropertyVisibleRangePropertyPropertiesAutoSizeTimelineColumnsDataConverterDragDependenciesBehaviorDragDropBehaviorDragVisualStyleExpandCollapseServiceExportingServiceFirstDayOfWeekGapBetweenColumnsGapBetweenRowsHighlightedItemsSourceHighlightsBehaviorInitialExpandBehaviorPixelLengthResizeBehaviorResizeVisualStyleScrollingServiceSelectedItemSelectedItemsSelectionBehaviorShowCurrentHourIndicatorShowRecurringTaskSummarySpecialSlotsGeneratorTaskRowKeySelectorTasksSourceTimelineContainerSelectorTimeLineFilteringBehaviorTimeLineVisualizationBehaviorTimeRulerContainerSelectorTimeRulerLinesTimeRulerVisualizationBehaviorVisibleRangeMethodsChooseRecurrenceScope(GanttTaskOccurrence, bool)DeleteOccurrence(GanttTaskOccurrence, GanttRecurrenceEditScope)DeleteOccurrence(GanttTaskOccurrence)EditRecurrence(RecurringGanttTask)GetDataItem(UIElement)OnApplyTemplate()OnCreateAutomationPeer()OnInitialized(EventArgs)OnSelectionChanged(SelectionChangedEventArgs)ResetTheme()RestoreOccurrence(RecurringGanttTask, DateTime)ShowOccurrenceDialog(GanttTaskOccurrence, Func<string, DateTime, DateTime, bool>)ShowRecurrenceDialog(RecurrenceEditingEventArgs, Func<bool>)EventsRecurrenceEditingRecurringSeriesDeletingRecurringTaskEditingSelectionChangedTaskEditedTaskEditingTaskSaving
Not finding the help you need?
Contact Support