• Product Bundles

    DevCraft

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

    • Conversational UI
    • 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 Xamarin
    Desktop
    UI for WinForms UI for WPF UI for WinUI UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore Fiddler Everywhere
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler Classic 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
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadGanttView

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.

Inheritance
System.Object
RadControl
RadGanttView
Inherited Members
RadControl.RefCount
RadControl.isResizing2
RadControl.isDisposing2
RadControl.invalidResizeRect
RadControl.isAccessibilityRequested
RadControl.Construct()
RadControl.CreateBehavior()
RadControl.CreateRootElement()
RadControl.InitializeRootElement(RootRadElement)
RadControl.LoadElementTree()
RadControl.LoadElementTree(Size)
RadControl.SetIsInitializing(Boolean)
RadControl.ShouldSerializeBackColor()
RadControl.SetBackColorThemeOverrides()
RadControl.ResetBackColorThemeOverrides()
RadControl.ShouldSerializeForeColor()
RadControl.SetForeColorThemeOverrides()
RadControl.ResetForeColorThemeOverrides()
RadControl.ShouldSerializeFont()
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, Boolean)
RadControl.ProcessAutoSizeChanged(Boolean)
RadControl.CallOnMouseCaptureChanged(EventArgs)
RadControl.CallBaseOnGotFocus(EventArgs)
RadControl.CallBaseOnLostFocus(EventArgs)
RadControl.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.CallOnMouseUp(MouseEventArgs)
RadControl.CallOnMouseDown(MouseEventArgs)
RadControl.CallOnClick(EventArgs)
RadControl.CallOnDoubleClick(EventArgs)
RadControl.CallOnMouseEnter(EventArgs)
RadControl.CallOnMouseWheel(MouseEventArgs)
RadControl.CallOnMouseLeave(EventArgs)
RadControl.CallOnMouseMove(MouseEventArgs)
RadControl.CallOnMouseHover(EventArgs)
RadControl.CallOnPreviewKeyDown(PreviewKeyDownEventArgs)
RadControl.CallBaseOnKeyDown(KeyEventArgs)
RadControl.CallOnKeyDown(KeyEventArgs)
RadControl.CallBaseOnKeyPress(KeyPressEventArgs)
RadControl.CallOnKeyPress(KeyPressEventArgs)
RadControl.GetInputElement()
RadControl.CallBaseOnKeyUp(KeyEventArgs)
RadControl.CallOnKeyUp(KeyEventArgs)
RadControl.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.CallOnVisibleChanged(EventArgs)
RadControl.BeginInit()
RadControl.EndInit()
RadControl.OnNotifyPropertyChanged(String)
RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadControl.IComponentTreeHandler.GetShowFocusCues()
RadControl.IComponentTreeHandler.CreateRootElement()
RadControl.IComponentTreeHandler.CreateChildItems(RadElement)
RadControl.IComponentTreeHandler.InitializeRootElement(RootRadElement)
RadControl.IComponentTreeHandler.InvalidateElement(RadElement)
RadControl.IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)
RadControl.IComponentTreeHandler.InvalidateIfNotSuspended()
RadControl.IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)
RadControl.IComponentTreeHandler.ControlThemeChangedCallback()
RadControl.IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)
RadControl.IComponentTreeHandler.OnFocusRequested(RadElement)
RadControl.IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)
RadControl.IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadControl.IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)
RadControl.IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.GetPreferredSize(Size)
RadControl.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
RadControl.GetRootElementDesiredSize(Int32, Int32, Int32, Int32)
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(Boolean)
RadControl.InvokeLayoutCallback(LayoutCallback)
RadControl.RegisterHostedControl(RadHostItem)
RadControl.UnregisterHostedControl(RadHostItem, Boolean)
RadControl.ControlDefinesThemeForElement(RadElement)
RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)
RadControl.GetPlainText()
RadControl.CanEditUIElement(RadElement)
RadControl.GetChildAt(Int32)
RadControl.ShouldSerializeProperty(RadProperty)
RadControl.CanEditElementAtDesignTime(RadElement)
RadControl.GetControlDefaultSize()
RadControl.GetDpiScaledSize(Size)
RadControl.GetDpiScaledSize(SizeF)
RadControl.ProcessCodedUIMessage(IPCMessage)
RadControl.FindPropertyInChildren(RadControl, IPCMessage)
RadControl.CallAccessibilityNotifyClients(AccessibleEvents, Int32)
RadControl.IPCHost.ProcessMessage(IPCMessage)
RadControl.ScaleControl(SizeF, BoundsSpecified)
RadControl.IComponentTreeHandler.get_Name()
RadControl.IComponentTreeHandler.set_Name(String)
RadControl.EnableDpiScaling
RadControl.EnableImageDpiScaling
RadControl.EnableSvgImages
RadControl.IsTrial
RadControl.IsLoaded
RadControl.LayoutManager
RadControl.ElementTree
RadControl.UseCompatibleTextRenderingDefaultValue
RadControl.Behavior
RadControl.RootElement
RadControl.Padding
RadControl.ThemeName
RadControl.EnableTheming
RadControl.ThemeClassName
RadControl.ImageList
RadControl.ImageScalingSize
RadControl.UseCompatibleTextRendering
RadControl.AutoSize
RadControl.MaximumSize
RadControl.MinimumSize
RadControl.Focusable
RadControl.Site
RadControl.CausesValidation
RadControl.IsInitializing
RadControl.SmallImageList
RadControl.SmallImageScalingSize
RadControl.IsDesignMode
RadControl.IsDisplayed
RadControl.FocusedElement
RadControl.AllowShowFocusCues
RadControl.ShowItemToolTips
RadControl.CommandBindings
RadControl.EnableKeyMap
RadControl.Font
RadControl.ValidationCancel
RadControl.IComponentTreeHandler.IsDesignMode
RadControl.IComponentTreeHandler.ElementTree
RadControl.IComponentTreeHandler.Behavior
RadControl.IComponentTreeHandler.Initializing
RadControl.IComponentTreeHandler.ThemeClassName
RadControl.EnableGestures
RadControl.EnableAnalytics
RadControl.AnalyticsName
RadControl.EnableRadAccessibilityObjects
RadControl.AccessibilityRequested
RadControl.EnableCodedUITests
RadControl.EnableCodedUITestsDefaultValue
RadControl.IPCHost.Context
RadControl.ElementInvalidated
RadControl.ToolTipTextNeeded
RadControl.ScreenTipNeeded
RadControl.ThemeNameChanged
RadControl.Initialized
RadControl.PropertyChanged
RadControl.ZoomGesture
RadControl.RotateGesture
RadControl.PanGesture
RadControl.TwoFingerTapGesture
RadControl.PressAndTapGesture
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

[TelerikToolboxCategory("Data Controls")]
public class RadGanttView : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, IPrintable

Constructors

RadGanttView()

Declaration
public RadGanttView()

Fields

bitmapCreated

Declaration
protected bool bitmapCreated
Field Value
System.Boolean

colCount

Declaration
protected int colCount
Field Value
System.Int32

drawArea

Declaration
protected RectangleF drawArea
Field Value
System.Drawing.RectangleF

printBmp

Declaration
protected Bitmap printBmp
Field Value
System.Drawing.Bitmap

rowCount

Declaration
protected int rowCount
Field Value
System.Int32

timelineBmp

Declaration
protected Bitmap timelineBmp
Field Value
System.Drawing.Bitmap

Properties

AllowSummaryEditing

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

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

BackColor

RadGanttView consists of multiple visual elements and separate settings are provided to customize their appearance. Current BackColor property might be ignored.

Declaration
public override Color BackColor { get; set; }
Property Value
System.Drawing.Color

Overrides
RadControl.BackColor

ChildMember

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

Declaration
public string ChildMember { get; set; }
Property Value
System.String

Columns

Gets the collection of columns shown in the GanttViewTextViewElement.

Declaration
public GanttViewTextViewColumnCollection Columns { get; }
Property Value
GanttViewTextViewColumnCollection

The columns.

CurrentColumn

Gets or sets the current column.

Declaration
public GanttViewTextViewColumn CurrentColumn { get; set; }
Property Value
GanttViewTextViewColumn

DataProvider

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

Declaration
public IGanttViewDataProvider DataProvider { get; set; }
Property Value
IGanttViewDataProvider

The data provider.

DataSource

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

Declaration
public object DataSource { get; set; }
Property Value
System.Object

DefaultSize

Gets the default size of the control.

Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size

The default System.Drawing.Size of the control.

DragDropService

Gets or sets the drag drop service.

Declaration
public GanttViewDragDropService DragDropService { get; set; }
Property Value
GanttViewDragDropService

The drag drop service.

EnableCustomPainting

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

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

true if custom painting is enabled; otherwise, false.

EndMember

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

Declaration
public string EndMember { get; set; }
Property Value
System.String

ForeColor

RadGanttView consists of multiple visual elements and separate settings are provided to customize their appearance. Current ForeColor property might be ignored.

Declaration
public override Color ForeColor { get; set; }
Property Value
System.Drawing.Color

Overrides
RadControl.ForeColor

GanttViewBehavior

Gets or sets the gantt view behavior.

Declaration
public BaseGanttViewBehavior GanttViewBehavior { get; set; }
Property Value
BaseGanttViewBehavior

The gantt view behavior.

GanttViewElement

Gets the gantt view element.

Declaration
public RadGanttViewElement GanttViewElement { get; }
Property Value
RadGanttViewElement

The gantt view element.

HeaderHeight

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

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

The height of the header.

IsDataBound

Gets a value indicating whether this instance is data bound.

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

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

IsEditing

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

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

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

IsInDesignMode

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

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

ItemHeight

Gets or sets the height of the items.

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

The height of the item.

Items

Gets the collection of task items.

Declaration
public GanttViewDataItemCollection Items { get; }
Property Value
GanttViewDataItemCollection

The task items.

LinkDataMember

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

Declaration
public string LinkDataMember { get; set; }
Property Value
System.String

LinkEndMember

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

Declaration
public string LinkEndMember { get; set; }
Property Value
System.String

Links

Gets the collection of links.

Declaration
public GanttViewLinkDataItemCollection Links { get; }
Property Value
GanttViewLinkDataItemCollection

The links.

LinkStartMember

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

Declaration
public string LinkStartMember { get; set; }
Property Value
System.String

LinkTypeConverter

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

Declaration
public LinkTypeConverter LinkTypeConverter { get; set; }
Property Value
LinkTypeConverter

The link type converter.

LinkTypeMember

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

Declaration
public string LinkTypeMember { get; set; }
Property Value
System.String

ParentMember

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

Declaration
public string ParentMember { get; set; }
Property Value
System.String

PrintSettings

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

Declaration
public GanttViewPrintSettings PrintSettings { get; set; }
Property Value
GanttViewPrintSettings

The print settings.

ProgressMember

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

Declaration
public string ProgressMember { get; set; }
Property Value
System.String

RadContextMenu

Gets or sets the context menu associated with the control.

Declaration
public virtual RadContextMenu RadContextMenu { get; set; }
Property Value
RadContextMenu

A System.Windows.Forms.ContextMenu that represents the context menu associated with the control.

Ratio

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

Declaration
public float Ratio { get; set; }
Property Value
System.Single

The ratio.

ReadOnly

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

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

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

SelectedItem

Gets or sets the selected item.

Declaration
public GanttViewDataItem SelectedItem { get; set; }
Property Value
GanttViewDataItem

The selected item.

SelectedLink

Gets or sets the selected link.

Declaration
public GanttViewLinkDataItem SelectedLink { get; set; }
Property Value
GanttViewLinkDataItem

The selected link.

ShowTimelineTodayIndicator

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

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

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

ShowTodayIndicator

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

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

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

SplitterWidth

Gets or sets the width of the splitter.

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

The width of the splitter.

StartMember

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

Declaration
public string StartMember { get; set; }
Property Value
System.String

TaskDataMember

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

Declaration
public string TaskDataMember { get; set; }
Property Value
System.String

Text

This property is not relevant for this class.

Declaration
public override string Text { get; set; }
Property Value
System.String

Overrides
RadControl.Text

TitleMember

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

Declaration
public string TitleMember { get; set; }
Property Value
System.String

Methods

BeginPrint(RadPrintDocument, PrintEventArgs)

Called when the printing begins.

Declaration
public int BeginPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters
RadPrintDocument sender

The that has initiated the printing.

System.Drawing.Printing.PrintEventArgs args

The event args.

Returns
System.Int32

The number of pages that will be printed.

Implements
IPrintable.BeginPrint(RadPrintDocument, PrintEventArgs)

BeginUpdate()

Disables all notifications in the RadGanttView

Declaration
public void BeginUpdate()

CreateChildItems(RadElement)

Creates the child items.

Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement parent

The parent.

Overrides
RadControl.CreateChildItems(RadElement)

CreateGanttViewElement()

Creates the RadGanttViewElement.

Declaration
protected virtual RadGanttViewElement CreateGanttViewElement()
Returns
RadGanttViewElement

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

Overrides
RadControl.Dispose(Boolean)

DrawCurrentPage(Graphics, Int32)

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

Declaration
protected virtual void DrawCurrentPage(Graphics g, int printedPage)
Parameters
System.Drawing.Graphics g

The graphics object.

System.Int32 printedPage

The printed page.

DrawHeaderAndTimelineViewToBitmap(Bitmap)

Draws the header and the timeline view items to bitmap.

Declaration
protected virtual void DrawHeaderAndTimelineViewToBitmap(Bitmap bmp)
Parameters
System.Drawing.Bitmap bmp

The BMP.

DrawHeaderCellsToBitmap(Graphics)

Draws the header cells to bitmap.

Declaration
protected virtual void DrawHeaderCellsToBitmap(Graphics g)
Parameters
System.Drawing.Graphics g

The g.

DrawLinksToBitmap(Graphics)

Draws the links to the bitmap.

Declaration
protected virtual void DrawLinksToBitmap(Graphics g)
Parameters
System.Drawing.Graphics g

The g.

DrawTextViewAndGraphicalViewToBitmap(Bitmap)

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

Declaration
protected virtual void DrawTextViewAndGraphicalViewToBitmap(Bitmap bmp)
Parameters
System.Drawing.Bitmap bmp

The BMP.

DrawTextViewCellsAndTasksToBitmap(Graphics)

Draws the grid cells and graphical tasks to the bitmap.

Declaration
protected virtual void DrawTextViewCellsAndTasksToBitmap(Graphics g)
Parameters
System.Drawing.Graphics g

The graphics.

DrawTimelineItemsToBitmap(Graphics)

Draws the timeline items to bitmap.

Declaration
protected virtual void DrawTimelineItemsToBitmap(Graphics g)
Parameters
System.Drawing.Graphics g

The g.

EndPrint(RadPrintDocument, PrintEventArgs)

Called when the printing ends.

Declaration
public bool EndPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters
RadPrintDocument sender

The that has initiated the printing.

System.Drawing.Printing.PrintEventArgs args

The event args.

Returns
System.Boolean

false if the printing was canceled

Implements
IPrintable.EndPrint(RadPrintDocument, PrintEventArgs)

EndUpdate()

Ends the update.

Declaration
public void EndUpdate()

GetElementShape(GanttViewPrintElementContext, RectangleF)

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

Declaration
protected virtual PointF[] GetElementShape(GanttViewPrintElementContext context, RectangleF rect)
Parameters
GanttViewPrintElementContext context

The context.

System.Drawing.RectangleF rect

The rect.

Returns
System.Drawing.PointF[]

GetFinishToFinishLines(GanttViewLinkDataItem, Int32, Int32)

Gets the finish to finish lines for the given link.

Declaration
protected virtual List<PointF> GetFinishToFinishLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters
GanttViewLinkDataItem link

The link.

System.Int32 startItemIndex

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

System.Int32 endItemIndex

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

Returns
System.Collections.Generic.List<System.Drawing.PointF>

GetFinishToStartLines(GanttViewLinkDataItem, Int32, Int32)

Gets the finish to start lines for the given link.

Declaration
protected virtual List<PointF> GetFinishToStartLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters
GanttViewLinkDataItem link

The link.

System.Int32 startItemIndex

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

System.Int32 endItemIndex

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

Returns
System.Collections.Generic.List<System.Drawing.PointF>

GetLinkLines(GanttViewLinkDataItem, Int32, Int32)

Gets the link lines for the given link.

Declaration
protected virtual List<PointF> GetLinkLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters
GanttViewLinkDataItem link

The link.

System.Int32 startItemIndex

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

System.Int32 endItemIndex

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

Returns
System.Collections.Generic.List<System.Drawing.PointF>

GetPrintElement(GanttViewPrintElementContext)

Gets an initialized print element based on the provided context.

Declaration
protected virtual GanttViewPrintElement GetPrintElement(GanttViewPrintElementContext context)
Parameters
GanttViewPrintElementContext context

The context.

Returns
GanttViewPrintElement

GetPrintRectangle(GanttViewDataItem, Int32)

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

Declaration
protected virtual RectangleF GetPrintRectangle(GanttViewDataItem item, int index)
Parameters
GanttViewDataItem item

The item that will be printed.

System.Int32 index

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

Returns
System.Drawing.RectangleF

GetSettingsDialog(RadPrintDocument)

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

Declaration
public Form GetSettingsDialog(RadPrintDocument document)
Parameters
RadPrintDocument document

The that has initiated the printing.

Returns
System.Windows.Forms.Form

The dialog.

Implements
IPrintable.GetSettingsDialog(RadPrintDocument)

GetStartToFinishLines(GanttViewLinkDataItem, Int32, Int32)

Gets the start to finish lines for the given link.

Declaration
protected virtual List<PointF> GetStartToFinishLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters
GanttViewLinkDataItem link

The link.

System.Int32 startItemIndex

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

System.Int32 endItemIndex

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

Returns
System.Collections.Generic.List<System.Drawing.PointF>

GetStartToStartLines(GanttViewLinkDataItem, Int32, Int32)

Gets the start to start lines for the given link.

Declaration
protected virtual List<PointF> GetStartToStartLines(GanttViewLinkDataItem link, int startItemIndex, int endItemIndex)
Parameters
GanttViewLinkDataItem link

The link.

System.Int32 startItemIndex

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

System.Int32 endItemIndex

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

Returns
System.Collections.Generic.List<System.Drawing.PointF>

IsInputKey(Keys)

Determines whether the pressed key is input key.

Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
System.Windows.Forms.Keys keyData

The key data.

Returns
System.Boolean

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

Overrides
RadControl.IsInputKey(Keys)

OnBindingContextChanged(EventArgs)

Raises the BindingContextChanged event.

Declaration
protected override void OnBindingContextChanged(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnBindingContextChanged(EventArgs)

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

The System.Windows.Forms.KeyEventArgs instance containing the event data.

Overrides
RadControl.OnKeyDown(KeyEventArgs)

OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
System.Windows.Forms.KeyPressEventArgs e

The System.Windows.Forms.KeyPressEventArgs instance containing the event data.

Overrides
RadControl.OnKeyPress(KeyPressEventArgs)

OnKeyUp(KeyEventArgs)

Raises the KeyUp event.

Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

The System.Windows.Forms.KeyEventArgs instance containing the event data.

Overrides
RadControl.OnKeyUp(KeyEventArgs)

OnMouseClick(MouseEventArgs)

Raises the System.Windows.Forms.Control.MouseClick event.

Declaration
protected override void OnMouseClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

An System.Windows.Forms.MouseEventArgs that contains the event data.

OnMouseDoubleClick(MouseEventArgs)

Raises the System.Windows.Forms.Control.MouseDoubleClick event.

Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

An System.Windows.Forms.MouseEventArgs that contains the event data.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseDown(MouseEventArgs)

OnMouseEnter(EventArgs)

Raises the MouseEnter event.

Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnMouseEnter(EventArgs)

OnMouseHover(EventArgs)

Raises the MouseHover event.

Declaration
protected override void OnMouseHover(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnMouseHover(EventArgs)

OnMouseLeave(EventArgs)

Raises the MouseLeave event.

Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseWheel(MouseEventArgs)

OnPrintElementFormatting(GanttViewPrintElementFormattingEventArgs)

Raises the PrintElementFormatting event.

Declaration
protected virtual void OnPrintElementFormatting(GanttViewPrintElementFormattingEventArgs e)
Parameters
GanttViewPrintElementFormattingEventArgs e

The GanttViewPrintElementFormattingEventArgs instance containing the event data.

OnPrintElementPaint(GanttViewPrintElementPaintEventArgs)

Raises the PrintElementPaint event.

Declaration
protected virtual void OnPrintElementPaint(GanttViewPrintElementPaintEventArgs e)
Parameters
GanttViewPrintElementPaintEventArgs e

The GanttViewPrintElementPaintEventArgs instance containing the event data.

Print()

Directly prints the RadGanttView to the default printer.

Declaration
public virtual void Print()

Print(Boolean)

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

Declaration
public virtual void Print(bool showPrinterSettings)
Parameters
System.Boolean showPrinterSettings

Indicates whether printer settings dialog should be shown.

Print(Boolean, RadPrintDocument)

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

Declaration
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)
Parameters
System.Boolean showPrinterSettings

Indicates whether printer settings dialog should be shown.

RadPrintDocument document

As instance of RadPrintDocument used to control the print process.

PrintGanttViewElement(Graphics, GanttViewPrintElementContext, RectangleF, String, Object)

Prints a gantt view element to the graphics object.

Declaration
protected virtual void PrintGanttViewElement(Graphics g, GanttViewPrintElementContext context, RectangleF rect, string text, object dataItem)
Parameters
System.Drawing.Graphics g

The Graphics object used for painting the element.

GanttViewPrintElementContext context

The print element context.

System.Drawing.RectangleF rect

The rectangle of the print element.

System.String text

The text of the print element.

System.Object dataItem

The data item of the print element.

PrintGanttViewElement(Graphics, GanttViewPrintElementContext, RectangleF, String, Object, String)

Prints a gantt view element to the graphics object.

Declaration
protected virtual void PrintGanttViewElement(Graphics g, GanttViewPrintElementContext context, RectangleF rect, string text, object dataItem, string columnName)
Parameters
System.Drawing.Graphics g

The Graphics object used for painting the element.

GanttViewPrintElementContext context

The print element context.

System.Drawing.RectangleF rect

The rectangle of the print element.

System.String text

The text of the print element.

System.Object dataItem

The data item of the print element.

System.String columnName

The column name of the print element.

PrintPage(Int32, RadPrintDocument, PrintPageEventArgs)

Prints the page with the specified number.

Declaration
public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
Parameters
System.Int32 pageNumber

The number of the current page.

RadPrintDocument sender

The that has initiated the printing.

System.Drawing.Printing.PrintPageEventArgs args

The event args.

Returns
System.Boolean

true if there are more pages, false otherwise

Implements
IPrintable.PrintPage(Int32, RadPrintDocument, PrintPageEventArgs)

PrintPreview()

Shows a RadPrintPreviewDialog for editing the RadGanttView print settings.

Declaration
public virtual void PrintPreview()

PrintPreview(RadPrintDocument)

Shows a RadPrintPreviewDialog for editing the RadGanttView print settings.

Declaration
public virtual void PrintPreview(RadPrintDocument document)
Parameters
RadPrintDocument document

As instance of RadPrintDocument used to control the print process.

ProcessDialogKey(Keys)

Processes a dialog key.

Declaration
protected override bool ProcessDialogKey(Keys keyData)
Parameters
System.Windows.Forms.Keys keyData

One of the System.Windows.Forms.Keys values that represents the key to process.

Returns
System.Boolean

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

WndProc(ref Message)

Handles windows messages.

Declaration
protected override void WndProc(ref Message m)
Parameters
System.Windows.Forms.Message m

The message.

Overrides
RadControl.WndProc(ref Message)

Events

ContextMenuOpening

Occurs when a context menu is about to be opened.

Declaration
public event GanttViewContextMenuOpeningEventHandler ContextMenuOpening
Event Type
GanttViewContextMenuOpeningEventHandler

CreateDataItem

Occurs when a new data item is created.

Declaration
public event CreateGanttDataItemEventHandler CreateDataItem
Event Type
CreateGanttDataItemEventHandler

CreateLinkDataItem

Occurs when a new link data item is created.

Declaration
public event CreateGanttLinkDataItemEventHandler CreateLinkDataItem
Event Type
CreateGanttLinkDataItemEventHandler

DataCellElementCreating

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

Declaration
public event GanttViewDataCellElementCreatingEventHandler DataCellElementCreating
Event Type
GanttViewDataCellElementCreatingEventHandler

GraphicalViewItemFormatting

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

Declaration
public event GanttViewGraphicalViewItemFormattingEventHandler GraphicalViewItemFormatting
Event Type
GanttViewGraphicalViewItemFormattingEventHandler

GraphicalViewLinkItemFormatting

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

Declaration
public event GanttViewLinkItemFormattingEventHandler GraphicalViewLinkItemFormatting
Event Type
GanttViewLinkItemFormattingEventHandler

HeaderCellElementCreating

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

Declaration
public event GanttViewHeaderCellElementCreatingEventHandler HeaderCellElementCreating
Event Type
GanttViewHeaderCellElementCreatingEventHandler

ItemAdded

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

Declaration
public event GanttViewItemAddedEventHandler ItemAdded
Event Type
GanttViewItemAddedEventHandler

ItemAdding

Occurs before an GanttViewDataItem is added to the Items collection.

Declaration
public event GanttItemAddingEventHandler ItemAdding
Event Type
GanttItemAddingEventHandler

ItemChanged

Occurs when an item's property is changed.

Declaration
public event GanttViewItemChangedEventhandler ItemChanged
Event Type
GanttViewItemChangedEventhandler

ItemChildIdNeeded

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

Declaration
public event GanttViewItemChildIdNeededEventHandler ItemChildIdNeeded
Event Type
GanttViewItemChildIdNeededEventHandler

ItemDataBound

Occurs when an item is data bound.

Declaration
public event GanttViewItemDataBoundEventHandler ItemDataBound
Event Type
GanttViewItemDataBoundEventHandler

ItemDataError

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

Declaration
public event GanttItemDataErrorEventHandler ItemDataError
Event Type
GanttItemDataErrorEventHandler

ItemElementCreating

Occurs when an item element needs to be created.

Declaration
public event GanttViewItemElementCreatingEventHandler ItemElementCreating
Event Type
GanttViewItemElementCreatingEventHandler

ItemExpandedChanged

Occurs after an item is expanded or collapsed.

Declaration
public event GanttViewExpandedChangedEventHandler ItemExpandedChanged
Event Type
GanttViewExpandedChangedEventHandler

ItemExpandedChanging

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

Declaration
public event GanttViewExpandedChangingEventHandler ItemExpandedChanging
Event Type
GanttViewExpandedChangingEventHandler

ItemPaint

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

Declaration
public event GanttViewItemPaintEventHandler ItemPaint
Event Type
GanttViewItemPaintEventHandler

ItemRemoved

Occurs when an item removed from the Items collection.

Declaration
public event GanttViewItemRemovedEventHandler ItemRemoved
Event Type
GanttViewItemRemovedEventHandler

LinkAdded

Occurs when a new link added to the Links collection.

Declaration
public event GanttViewLinkAddedEventHandler LinkAdded
Event Type
GanttViewLinkAddedEventHandler

LinkAdding

Occurs before an GanttViewLinkDataItem is added to the Links collection.

Declaration
public event GanttLinkAddingEventHandler LinkAdding
Event Type
GanttLinkAddingEventHandler

LinkChanged

Occurs when a link's property is changed.

Declaration
public event GanttViewLinkChangedEventHandler LinkChanged
Event Type
GanttViewLinkChangedEventHandler

LinkDataBound

Occurs when a link is data bound.

Declaration
public event GanttViewLinkDataBoundEventHandler LinkDataBound
Event Type
GanttViewLinkDataBoundEventHandler

LinkDataError

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

Declaration
public event GanttLinkDataErrorEventHandler LinkDataError
Event Type
GanttLinkDataErrorEventHandler

LinkRemoved

Occurs when a link is removed from the Links collection.

Declaration
public event GanttViewLinkRemovedEventHandler LinkRemoved
Event Type
GanttViewLinkRemovedEventHandler

PrintElementFormatting

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

Declaration
public event GanttViewPrintElementFormattingEventHandler PrintElementFormatting
Event Type
GanttViewPrintElementFormattingEventHandler

PrintElementPaint

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

Declaration
public event GanttViewPrintElementPaintEventHandler PrintElementPaint
Event Type
GanttViewPrintElementPaintEventHandler

SelectedItemChanged

Occurs when selected item has been changed.

Declaration
public event GanttViewSelectedItemChangedEventHandler SelectedItemChanged
Event Type
GanttViewSelectedItemChangedEventHandler

SelectedItemChanging

Occurs when the selected item is about to be changed.

Declaration
public event GanttViewSelectedItemChangingEventHandler SelectedItemChanging
Event Type
GanttViewSelectedItemChangingEventHandler

SelectedLinkChanged

Occurs when selected link has been changed.

Declaration
public event GanttViewSelectedLinkChangedEventHandler SelectedLinkChanged
Event Type
GanttViewSelectedLinkChangedEventHandler

SelectedLinkChanging

Occurs when the selected link is about to be changed.

Declaration
public event GanttViewSelectedLinkChangingEventHandler SelectedLinkChanging
Event Type
GanttViewSelectedLinkChangingEventHandler

TextViewCellFormatting

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

Declaration
public event GanttViewTextViewCellFormattingEventHandler TextViewCellFormatting
Event Type
GanttViewTextViewCellFormattingEventHandler

TextViewItemFormatting

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

Declaration
public event GanttViewTextViewItemFormattingEventHandler TextViewItemFormatting
Event Type
GanttViewTextViewItemFormattingEventHandler

TimelineItemElementCreating

Occurs when a timeline item element needs to be created.

Declaration
public event GanttViewTimelineItemElementCreatingEventHandler TimelineItemElementCreating
Event Type
GanttViewTimelineItemElementCreatingEventHandler

TimelineItemFormatting

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

Declaration
public event GanttViewTimelineItemFormattingEventHandler TimelineItemFormatting
Event Type
GanttViewTimelineItemFormattingEventHandler

Extension Methods

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.