New to Telerik UI for WinFormsStart a free 30-day trial

Displays a hierarchical collection of task items along with the relations between them. Each item is represented by a GanttViewDataItem and each link is represented by a GanttViewLinkDataItem.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[TelerikToolboxCategory("Data Controls")]
[ComplexBindingProperties("DataSource")]
[Docking(DockingBehavior.Ask)]
public class RadGanttView : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPrintable

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadGanttView...

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedIPrintableISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window...

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)...

Constructors

Initializes a new instance of the RadGanttView class.

C#
public RadGanttView()

Fields

C#
protected bool bitmapCreated
C#
protected int colCount
C#
protected RectangleF drawArea
C#
protected Bitmap printBmp
C#
protected int rowCount
C#
protected Bitmap timelineBmp

Properties

Gets or sets a value indicating whether summary items are editable by the user or their value is auto-calculated from their sub items.

C#
public bool AllowSummaryEditing { get; set; }

Gets or sets a property name which will be used to define a relation of the data items.

C#
public string ChildMember { get; set; }

Gets the collection of columns shown in the GanttViewTextViewElement.

C#
[Browsable(true)]
public GanttViewTextViewColumnCollection Columns { get; }
Property Value:

The columns.

Gets or sets the current column.

C#
[Browsable(false)]
public GanttViewTextViewColumn CurrentColumn { get; set; }

Gets or sets a IGanttViewDataProvider instance, which enables integration with other controls.

C#
public IGanttViewDataProvider DataProvider { get; set; }
Property Value:

The data provider.

Gets or sets the data source that the RadGanttView is displaying data for.

C#
public object DataSource { get; set; }

Gets the default size of the control.

C#
protected override Size DefaultSize { get; }
Property Value:

The default Size of the control.

Overrides: Control.DefaultSize

Gets or sets the drag drop service.

C#
[Browsable(false)]
public GanttViewDragDropService DragDropService { get; set; }
Property Value:

The drag drop service.

Gets or sets a value indicating whether custom painting is enabled.

C#
public bool EnableCustomPainting { get; set; }
Property Value:

true if custom painting is enabled; otherwise, false.

Gets or sets a property name which will be used to extract the end of the data items.

C#
public string EndMember { get; set; }

Gets or sets the gantt view behavior.

C#
[Browsable(false)]
public BaseGanttViewBehavior GanttViewBehavior { get; set; }
Property Value:

The gantt view behavior.

Gets the gantt view element.

C#
[Browsable(false)]
public RadGanttViewElement GanttViewElement { get; }
Property Value:

The gantt view element.

Gets or sets the height of the header row and the timeline container.

C#
public int HeaderHeight { get; set; }
Property Value:

The height of the header.

Gets a value indicating whether this instance is data bound.

C#
[Browsable(false)]
public bool IsDataBound { get; }
Property Value:

true if this instance is data bound; otherwise, false.

Gets a value indicating whether this instance is in edit mode.

C#
public bool IsEditing { get; }
Property Value:

true if this instance is in edit mode; otherwise, false.

Gets or a value indicating whether the control is in design mode.

C#
[Browsable(false)]
public bool IsInDesignMode { get; }

Gets or sets the height of the items.

C#
public int ItemHeight { get; set; }
Property Value:

The height of the item.

Gets the collection of task items.

C#
[Browsable(true)]
public GanttViewDataItemCollection Items { get; }
Property Value:

The task items.

Gets or sets the name of the list or table in the data source from which the RadGanttViewElement will extract links data.

C#
[Browsable(true)]
public string LinkDataMember { get; set; }

Gets or sets a property name which will be used to extract the links end item.

C#
public string LinkEndMember { get; set; }

Gets the collection of links.

C#
[Browsable(true)]
public GanttViewLinkDataItemCollection Links { get; }
Property Value:

The links.

Gets or sets a property name which will be used to extract links start item.

C#
public string LinkStartMember { get; set; }

Gets or sets a link type converter that will be used to convert values coming from the data source to TasksLinkType and vice versa.

C#
[Browsable(false)]
public LinkTypeConverter LinkTypeConverter { get; set; }
Property Value:

The link type converter.

Gets or sets a property name which will be used to extract the link type of the data items.

C#
public string LinkTypeMember { get; set; }

Gets or sets a property name which will be used to define a relation of the data items.

C#
public string ParentMember { get; set; }

Gets or sets a GanttViewPrintSettings instance, which hold the default print settings.

C#
[Browsable(true)]
public GanttViewPrintSettings PrintSettings { get; set; }
Property Value:

The print settings.

Gets or sets a property name which will be used to extract the Progress of the data items.

C#
public string ProgressMember { get; set; }

Gets or sets the context menu associated with the control.

C#
public virtual RadContextMenu RadContextMenu { get; set; }
Property Value:

A ContextMenu that represents the context menu associated with the control.

Gets or sets the ratio between the text view and the graphical view.

C#
public float Ratio { get; set; }
Property Value:

The ratio.

Gets or sets a value indicating whether the gantt view is read only.

C#
public bool ReadOnly { get; set; }
Property Value:

true if the gantt view is read only; otherwise, false.

Gets or sets the selected item.

C#
[Browsable(false)]
public GanttViewDataItem SelectedItem { get; set; }
Property Value:

The selected item.

Gets or sets the selected link.

C#
[Browsable(false)]
public GanttViewLinkDataItem SelectedLink { get; set; }
Property Value:

The selected link.

Gets or sets a value indicating whether to show the timeline today indicator.

C#
public bool ShowTimelineTodayIndicator { get; set; }
Property Value:

true if the timeline today indicator is visible; otherwise, false.

Gets or sets a value indicating whether to show the today indicator.

C#
public bool ShowTodayIndicator { get; set; }
Property Value:

true if the today indicator is visible; otherwise, false.

Gets or sets the width of the splitter.

C#
public int SplitterWidth { get; set; }
Property Value:

The width of the splitter.

Gets or sets a property name which will be used to extract the start of the data items.

C#
public string StartMember { get; set; }

Gets or sets the name of the list or table in the data source from which the RadGanttViewElement will extract tasks data.

C#
[Browsable(true)]
public string TaskDataMember { get; set; }

Gets or sets a property name which will be used to extract the title of the data items.

C#
public string TitleMember { get; set; }

Methods

Called when the printing begins.

C#
public int BeginPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters:senderRadPrintDocument

The that has initiated the printing.

argsPrintEventArgs

The event args.

Returns:

int

The number of pages that will be printed.

Implements: IPrintable.BeginPrint(RadPrintDocument, PrintEventArgs)

Disables all notifications in the RadGanttView to improve performance during bulk operations.

C#
public void BeginUpdate()

Creates the child items.

C#
protected override void CreateChildItems(RadElement parent)
Parameters:parentRadElement

The parent.

Overrides: RadControl.CreateChildItems(RadElement)

Creates and returns a new instance of RadGanttViewElement. This method can be overridden to provide custom element implementations.

C#
protected virtual RadGanttViewElement CreateGanttViewElement()
Returns:

RadGanttViewElement

A new instance of RadGanttViewElement.

Releases the unmanaged resources used by the RadGanttView and optionally releases the managed resources.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides: RadControl.Dispose(bool)

Draws the current page by slicing a portion of the big bitmap.

C#
protected virtual void DrawCurrentPage(Graphics g, int printedPage)
Parameters:gGraphics

The graphics object.

printedPageint

The printed page.

Draws the header and the timeline view items to bitmap.

C#
protected virtual void DrawHeaderAndTimelineViewToBitmap(Bitmap bmp)
Parameters:bmpBitmap

The BMP.

Draws the header cells to bitmap.

C#
protected virtual void DrawHeaderCellsToBitmap(Graphics g)
Parameters:gGraphics

The g.

Draws the links to the bitmap.

C#
protected virtual void DrawLinksToBitmap(Graphics g)
Parameters:gGraphics

The g.

Draws the grid portion of the gantt view and the graphical view to the big bitmap.

C#
protected virtual void DrawTextViewAndGraphicalViewToBitmap(Bitmap bmp)
Parameters:bmpBitmap

The BMP.

Draws the grid cells and graphical tasks to the bitmap.

C#
protected virtual void DrawTextViewCellsAndTasksToBitmap(Graphics g)
Parameters:gGraphics

The graphics.

Draws the timeline items to bitmap.

C#
protected virtual void DrawTimelineItemsToBitmap(Graphics g)
Parameters:gGraphics

The g.

Called when the printing ends.

C#
public bool EndPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters:senderRadPrintDocument

The that has initiated the printing.

argsPrintEventArgs

The event args.

Returns:

bool

false if the printing was canceled

Implements: IPrintable.EndPrint(RadPrintDocument, PrintEventArgs)

Re-enables notifications and updates the RadGanttView after bulk operations are completed.

C#
public void EndUpdate()

Gets the shape of an element based on the print context and the provided rectangle.

C#
protected virtual PointF[] GetElementShape(GanttViewPrintElementContext context, RectangleF rect)
Parameters:contextGanttViewPrintElementContext

The context.

rectRectangleF

The rect.

Returns:

PointF[]

Gets the finish to finish lines for the given link.

C#
protected virtual List<PointF> GetFinishToFinishLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters:linkGanttViewLinkDataItem

The link.

startItemIndexint

The index of the link start item in a flat representation of the items hierarchy.

endItemIndexint

The index of the link end item in a flat representation of the items hierarchy.

Returns:

List<PointF>

Gets the finish to start lines for the given link.

C#
protected virtual List<PointF> GetFinishToStartLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters:linkGanttViewLinkDataItem

The link.

startItemIndexint

The index of the link start item in a flat representation of the items hierarchy.

endItemIndexint

The index of the link end item in a flat representation of the items hierarchy.

Returns:

List<PointF>

Gets the link lines for the given link.

C#
protected virtual List<PointF> GetLinkLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters:linkGanttViewLinkDataItem

The link.

startItemIndexint

The index of the link start item in a flat representation of the items hierarchy.

endItemIndexint

The index of the link end item in a flat representation of the items hierarchy.

Returns:

List<PointF>

Gets an initialized print element based on the provided context.

C#
protected virtual GanttViewPrintElement GetPrintElement(GanttViewPrintElementContext context)
Parameters:contextGanttViewPrintElementContext

The context.

Returns:

GanttViewPrintElement

Returns a rectangle representing the coordinates where an object should be positioned or drawn for the given item and time frame.

C#
protected virtual RectangleF GetPrintRectangle(GanttViewDataItem item, int index)
Parameters:itemGanttViewDataItem

The item that will be printed.

indexint

The index of the item in a flat representation of the items hierarchy.

Returns:

RectangleF

Gets a print settings dialog that is specific for the printable object.

C#
public Form GetSettingsDialog(RadPrintDocument document)
Parameters:documentRadPrintDocument

The that has initiated the printing.

Returns:

Form

The dialog.

Implements: IPrintable.GetSettingsDialog(RadPrintDocument)

Gets the start to finish lines for the given link.

C#
protected virtual List<PointF> GetStartToFinishLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters:linkGanttViewLinkDataItem

The link.

startItemIndexint

The index of the link start item in a flat representation of the items hierarchy.

endItemIndexint

The index of the link end item in a flat representation of the items hierarchy.

Returns:

List<PointF>

Gets the start to start lines for the given link.

C#
protected virtual List<PointF> GetStartToStartLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters:linkGanttViewLinkDataItem

The link.

startItemIndexint

The index of the link start item in a flat representation of the items hierarchy.

endItemIndexint

The index of the link end item in a flat representation of the items hierarchy.

Returns:

List<PointF>

Determines whether the pressed key is input key.

C#
protected override bool IsInputKey(Keys keyData)
Parameters:keyDataKeys

The key data.

Returns:

bool

true if the pressed key is an input key; otherwise, false.

Overrides: RadControl.IsInputKey(Keys)

Raises the event.

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

The EventArgs instance containing the event data.

Overrides: RadControl.OnBindingContextChanged(EventArgs)

Raises the event.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The KeyEventArgs instance containing the event data.

Overrides: RadControl.OnKeyDown(KeyEventArgs)

Raises the event.

C#
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The KeyPressEventArgs instance containing the event data.

Overrides: RadControl.OnKeyPress(KeyPressEventArgs)

Raises the event.

C#
protected override void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

The KeyEventArgs instance containing the event data.

Overrides: RadControl.OnKeyUp(KeyEventArgs)

Raises the MouseClick event.

C#
protected override void OnMouseClick(MouseEventArgs e)
Parameters:eMouseEventArgs

An MouseEventArgs that contains the event data.

Overrides: Control.OnMouseClick(MouseEventArgs)

Raises the MouseDoubleClick event.

C#
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters:eMouseEventArgs

An MouseEventArgs that contains the event data.

Overrides: Control.OnMouseDoubleClick(MouseEventArgs)

Raises the event.

C#
protected override void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Overrides: RadControl.OnMouseDown(MouseEventArgs)

Raises the event.

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

The EventArgs instance containing the event data.

Overrides: RadControl.OnMouseEnter(EventArgs)

Raises the event.

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

The EventArgs instance containing the event data.

Overrides: RadControl.OnMouseHover(EventArgs)

Raises the event.

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

The EventArgs instance containing the event data.

Overrides: RadControl.OnMouseLeave(EventArgs)

Raises the event.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Overrides: RadControl.OnMouseMove(MouseEventArgs)

Raises the event.

C#
protected override void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Overrides: RadControl.OnMouseUp(MouseEventArgs)

Raises the event.

C#
protected override void OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Overrides: RadControl.OnMouseWheel(MouseEventArgs)

Raises the event.

C#
protected virtual void OnPrintElementFormatting(GanttViewPrintElementFormattingEventArgs e)
Parameters:eGanttViewPrintElementFormattingEventArgs

The GanttViewPrintElementFormattingEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnPrintElementPaint(GanttViewPrintElementPaintEventArgs e)
Parameters:eGanttViewPrintElementPaintEventArgs

The GanttViewPrintElementPaintEventArgs instance containing the event data.

Directly prints the RadGanttView to the default printer.

C#
public virtual void Print()

Directly prints the RadGanttView to the default printer or shows printer settings and then prints the RadGanttView.

C#
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)
Parameters:showPrinterSettingsbool

Indicates whether printer settings dialog should be shown.

documentRadPrintDocument

As instance of RadPrintDocument used to control the print process.

Directly prints the RadGanttView to the default printer or shows printer settings and then prints the RadGanttView.

C#
public virtual void Print(bool showPrinterSettings)
Parameters:showPrinterSettingsbool

Indicates whether printer settings dialog should be shown.

Prints a gantt view element to the graphics object.

C#
protected virtual void PrintGanttViewElement(Graphics g, GanttViewPrintElementContext context, RectangleF rect, string text, object dataItem, string columnName)
Parameters:gGraphics

The Graphics object used for painting the element.

contextGanttViewPrintElementContext

The print element context.

rectRectangleF

The rectangle of the print element.

textstring

The text of the print element.

dataItemobject

The data item of the print element.

columnNamestring

The column name of the print element.

Prints a gantt view element to the graphics object.

C#
protected virtual void PrintGanttViewElement(Graphics g, GanttViewPrintElementContext context, RectangleF rect, string text, object dataItem)
Parameters:gGraphics

The Graphics object used for painting the element.

contextGanttViewPrintElementContext

The print element context.

rectRectangleF

The rectangle of the print element.

textstring

The text of the print element.

dataItemobject

The data item of the print element.

Prints the page with the specified number.

C#
public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
Parameters:pageNumberint

The number of the current page.

senderRadPrintDocument

The that has initiated the printing.

argsPrintPageEventArgs

The event args.

Returns:

bool

true if there are more pages, false otherwise

Implements: IPrintable.PrintPage(int, RadPrintDocument, PrintPageEventArgs)

Shows a RadPrintPreviewDialog for editing the RadGanttView print settings.

C#
public virtual void PrintPreview()

Shows a RadPrintPreviewDialog for editing the RadGanttView print settings.

C#
public virtual void PrintPreview(RadPrintDocument document)
Parameters:documentRadPrintDocument

As instance of RadPrintDocument used to control the print process.

Processes a dialog key.

C#
protected override bool ProcessDialogKey(Keys keyData)
Parameters:keyDataKeys

One of the Keys values that represents the key to process.

Returns:

bool

true if the key was processed by the control; otherwise, false.

Overrides: Control.ProcessDialogKey(Keys)

Handles windows messages.

C#
protected override void WndProc(ref Message m)
Parameters:mMessage

The message.

Overrides: RadControl.WndProc(ref Message)

Events

Occurs when a context menu is about to be opened.

C#
public event GanttViewContextMenuOpeningEventHandler ContextMenuOpening

Occurs when a new data item is created.

C#
public event CreateGanttDataItemEventHandler CreateDataItem

Occurs when a new link data item is created.

C#
public event CreateGanttLinkDataItemEventHandler CreateLinkDataItem

Occurs when a new data cell element needs to be created.

C#
public event GanttViewDataCellElementCreatingEventHandler DataCellElementCreating

Occurs when the state of an item in the GanttViewGraphicalViewElement changes and it needs to be formatted.

C#
public event GanttViewGraphicalViewItemFormattingEventHandler GraphicalViewItemFormatting

Occurs when the state of a link item in the GanttViewGraphicalViewElement changes and it needs to be formatted.

C#
public event GanttViewLinkItemFormattingEventHandler GraphicalViewLinkItemFormatting

Occurs when a new header cell element needs to be created.

C#
public event GanttViewHeaderCellElementCreatingEventHandler HeaderCellElementCreating

Occurs when a new item is added to the Items collection.

C#
public event GanttViewItemAddedEventHandler ItemAdded

Occurs before an GanttViewDataItem is added to the Items collection.

C#
public event GanttItemAddingEventHandler ItemAdding

Occurs when an item's property is changed.

C#
public event GanttViewItemChangedEventhandler ItemChanged

Occurs when an item needs an id for storing in data sources.

C#
public event GanttViewItemChildIdNeededEventHandler ItemChildIdNeeded

Occurs when an item is data bound.

C#
public event GanttViewItemDataBoundEventHandler ItemDataBound

Occurs when there is an error in the data layer of RadGanttView related to data operations with Item objects.

C#
public event GanttItemDataErrorEventHandler ItemDataError

Occurs when an item element needs to be created.

C#
public event GanttViewItemElementCreatingEventHandler ItemElementCreating

Occurs after an item is expanded or collapsed.

C#
public event GanttViewExpandedChangedEventHandler ItemExpandedChanged

Occurs when an item is about to be expanded or collapsed.

C#
public event GanttViewExpandedChangingEventHandler ItemExpandedChanging

Occurs when an item is painted. Allows custom painting over the item. EnableCustomPainting must be set to true for this event to be fired.

C#
public event GanttViewItemPaintEventHandler ItemPaint

Occurs when an item removed from the Items collection.

C#
public event GanttViewItemRemovedEventHandler ItemRemoved

Occurs when a new link added to the Links collection.

C#
public event GanttViewLinkAddedEventHandler LinkAdded

Occurs before an GanttViewLinkDataItem is added to the Links collection.

C#
public event GanttLinkAddingEventHandler LinkAdding

Occurs when a link's property is changed.

C#
public event GanttViewLinkChangedEventHandler LinkChanged

Occurs when a link is data bound.

C#
public event GanttViewLinkDataBoundEventHandler LinkDataBound

Occurs when there is an error in the data layer of RadGanttView related to data operations with Link objects.

C#
public event GanttLinkDataErrorEventHandler LinkDataError

Occurs when a link is removed from the Links collection.

C#
public event GanttViewLinkRemovedEventHandler LinkRemoved

Occurs when an element will be printed. Allows formatting of the element.

C#
public event GanttViewPrintElementFormattingEventHandler PrintElementFormatting

Occurs after an element is printed. Allows for custom painting over the element.

C#
public event GanttViewPrintElementPaintEventHandler PrintElementPaint

Occurs when selected item has been changed.

C#
public event GanttViewSelectedItemChangedEventHandler SelectedItemChanged

Occurs when the selected item is about to be changed.

C#
public event GanttViewSelectedItemChangingEventHandler SelectedItemChanging

Occurs when selected link has been changed.

C#
public event GanttViewSelectedLinkChangedEventHandler SelectedLinkChanged

Occurs when the selected link is about to be changed.

C#
public event GanttViewSelectedLinkChangingEventHandler SelectedLinkChanging

Occurs when the content of a cell needs to be formatted for display.

C#
public event GanttViewTextViewCellFormattingEventHandler TextViewCellFormatting

Occurs when an item in the GanttViewTextViewElement state changes and it needs to be formatted.

C#
public event GanttViewTextViewItemFormattingEventHandler TextViewItemFormatting

Occurs when a timeline item element needs to be created.

C#
public event GanttViewTimelineItemElementCreatingEventHandler TimelineItemElementCreating

Occurs when the state of a timeline item changes and it needs to be formatted.

C#
public event GanttViewTimelineItemFormattingEventHandler TimelineItemFormatting
In this article
DefinitionConstructorsRadGanttView()FieldsbitmapCreatedcolCountdrawAreaprintBmprowCounttimelineBmpPropertiesAllowSummaryEditingChildMemberColumnsCurrentColumnDataProviderDataSourceDefaultSizeDragDropServiceEnableCustomPaintingEndMemberGanttViewBehaviorGanttViewElementHeaderHeightIsDataBoundIsEditingIsInDesignModeItemHeightItemsLinkDataMemberLinkEndMemberLinksLinkStartMemberLinkTypeConverterLinkTypeMemberParentMemberPrintSettingsProgressMemberRadContextMenuRatioReadOnlySelectedItemSelectedLinkShowTimelineTodayIndicatorShowTodayIndicatorSplitterWidthStartMemberTaskDataMemberTitleMemberMethodsBeginPrint(RadPrintDocument, PrintEventArgs)BeginUpdate()CreateChildItems(RadElement)CreateGanttViewElement()Dispose(bool)DrawCurrentPage(Graphics, int)DrawHeaderAndTimelineViewToBitmap(Bitmap)DrawHeaderCellsToBitmap(Graphics)DrawLinksToBitmap(Graphics)DrawTextViewAndGraphicalViewToBitmap(Bitmap)DrawTextViewCellsAndTasksToBitmap(Graphics)DrawTimelineItemsToBitmap(Graphics)EndPrint(RadPrintDocument, PrintEventArgs)EndUpdate()GetElementShape(GanttViewPrintElementContext, RectangleF)GetFinishToFinishLines(GanttViewLinkDataItem, int, int)GetFinishToStartLines(GanttViewLinkDataItem, int, int)GetLinkLines(GanttViewLinkDataItem, int, int)GetPrintElement(GanttViewPrintElementContext)GetPrintRectangle(GanttViewDataItem, int)GetSettingsDialog(RadPrintDocument)GetStartToFinishLines(GanttViewLinkDataItem, int, int)GetStartToStartLines(GanttViewLinkDataItem, int, int)IsInputKey(Keys)OnBindingContextChanged(EventArgs)OnKeyDown(KeyEventArgs)OnKeyPress(KeyPressEventArgs)OnKeyUp(KeyEventArgs)OnMouseClick(MouseEventArgs)OnMouseDoubleClick(MouseEventArgs)OnMouseDown(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseHover(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnPrintElementFormatting(GanttViewPrintElementFormattingEventArgs)OnPrintElementPaint(GanttViewPrintElementPaintEventArgs)Print()Print(bool, RadPrintDocument)Print(bool)PrintGanttViewElement(Graphics, GanttViewPrintElementContext, RectangleF, string, object, string)PrintGanttViewElement(Graphics, GanttViewPrintElementContext, RectangleF, string, object)PrintPage(int, RadPrintDocument, PrintPageEventArgs)PrintPreview()PrintPreview(RadPrintDocument)ProcessDialogKey(Keys)WndProc(ref Message)EventsContextMenuOpeningCreateDataItemCreateLinkDataItemDataCellElementCreatingGraphicalViewItemFormattingGraphicalViewLinkItemFormattingHeaderCellElementCreatingItemAddedItemAddingItemChangedItemChildIdNeededItemDataBoundItemDataErrorItemElementCreatingItemExpandedChangedItemExpandedChangingItemPaintItemRemovedLinkAddedLinkAddingLinkChangedLinkDataBoundLinkDataErrorLinkRemovedPrintElementFormattingPrintElementPaintSelectedItemChangedSelectedItemChangingSelectedLinkChangedSelectedLinkChangingTextViewCellFormattingTextViewItemFormattingTimelineItemElementCreatingTimelineItemFormatting
Not finding the help you need?
Contact Support