ClassRadGanttViewElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadGanttViewElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadGanttViewElement
Implements:
Inherited Members
Constructors
RadGanttViewElement()
Initializes a new instance of the RadGanttViewElement class.
Declaration
public RadGanttViewElement()
Fields
HeaderHeightProperty
Identifies the HeaderHeight dependency property.
Declaration
public static RadProperty HeaderHeightProperty
Field Value
ItemHeightProperty
Identifies the ItemHeight dependency property.
ItemSpacingProperty
Identifies the ItemSpacing dependency property.
MinimumLinkLengthProperty
Identifies the MinimumLinkLength dependency property.
Declaration
public static RadProperty MinimumLinkLengthProperty
Field Value
MinimumTaskWidthProperty
Identifies the MinimumTaskWidth dependency property.
Declaration
public static RadProperty MinimumTaskWidthProperty
Field Value
ReadOnlyProperty
Identifies the ReadOnly dependency property.
SplitterWidthProperty
Identifies the SplitterWidth dependency property.
Declaration
public static RadProperty SplitterWidthProperty
Field Value
Properties
ActiveEditor
Gets the active editor.
AllowDefaultContextMenu
Gets or sets a value indicating whether the default context menu may be shown.
Declaration
public bool AllowDefaultContextMenu { get; set; }
Property Value
true if the default context menu may be shown; otherwise, false.
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.
BeginEditMode
Gets or sets the begin edit mode.
Declaration
public GanttViewBeginEditModes BeginEditMode { get; set; }
Property Value
The begin edit mode.
BindingContext
Gets or sets the BindingContext for the object.
Declaration
public override BindingContext BindingContext { get; set; }
Property Value
Overrides
ChildMember
Gets or sets a property name which will be used to define a relation of the data items.
Columns
Gets the columns shown in the GanttViewTextViewElement.
Declaration
public GanttViewTextViewColumnCollection Columns { get; }
Property Value
GanttViewTextViewColumnCollection
The columns.
Comparer
Gets or sets the default sort Comparer for RadGanttView. The default comparer compares the items according to their start time.
Declaration
[Browsable(false)]
public IComparer<GanttViewDataItem> Comparer { get; set; }
Property Value
IComparer<GanttViewDataItem>
ContextMenu
Gets or sets the context menu.
Declaration
public virtual RadContextMenu ContextMenu { get; set; }
Property Value
The context menu.
CurrentColumn
Gets or sets the current column.
Declaration
[Browsable(false)]
public GanttViewTextViewColumn CurrentColumn { get; set; }
Property Value
DataItemProvider
Gets the data item provider.
Declaration
public virtual GanttViewDataItemProvider DataItemProvider { get; }
Property Value
The data item provider.
DataProvider
Declaration
public IGanttViewDataProvider DataProvider { get; set; }
Property Value
DataSource
Gets or sets the data source that the RadGanttView is displaying data for.
DisableEnsureItemVisibleHorizontal
Gets or sets a value indicating whether to disable ensure item visible horizontal.
Declaration
public bool DisableEnsureItemVisibleHorizontal { get; set; }
Property Value
true if ensure item visible horizontal is disabled; otherwise, false.
DragDropService
Gets or sets the drag drop service.
Declaration
public GanttViewDragDropService DragDropService { get; set; }
Property Value
The drag drop service.
EnableCustomPainting
Gets or sets a value indicating whether custom painting is enabled.
Declaration
public bool EnableCustomPainting { get; set; }
Property Value
true if custom painting is enabled; otherwise, false.
EnableKineticScrolling
Gets or sets a value indicating whether the kinetic scrolling function is enabled.
Declaration
[Browsable(true)]
public bool EnableKineticScrolling { get; set; }
Property Value
EndMember
Gets or sets a property name which will be used to extract the end of the data items.
FilterDescriptors
Gets the filter descriptors.
Declaration
[Browsable(false)]
public FilterDescriptorCollection FilterDescriptors { get; }
Property Value
The filter descriptors.
GanttViewBehavior
Gets or sets the gantt view behavior.
Declaration
public BaseGanttViewBehavior GanttViewBehavior { get; set; }
Property Value
The gantt view behavior.
GraphicalViewElement
Gets the GanttViewGraphicalViewElement.
Declaration
public GanttViewGraphicalViewElement GraphicalViewElement { get; }
Property Value
The graphical view element.
HasLinks
Gets a value indicating whether the inks collection is populated.
Declaration
public bool HasLinks { get; }
Property Value
true if this instance has links; otherwise, false.
HeaderHeight
Gets or sets the height of the header row and the timeline container.
Declaration
public int HeaderHeight { get; set; }
Property Value
The height of the header.
IsDataBound
Gets a value indicating whether this instance is data bound.
Declaration
public bool IsDataBound { get; }
Property Value
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
true if this instance is in edit mode; otherwise, false.
IsInDesignMode
Gets or a value indicating whether the control is in design mode.
Declaration
[Browsable(false)]
public bool IsInDesignMode { get; }
Property Value
ItemHeight
Gets or sets the height of the items.
Declaration
public int ItemHeight { get; set; }
Property Value
The height of the item.
ItemSpacing
Gets or sets the item spacing.
Declaration
public int ItemSpacing { get; set; }
Property Value
The item spacing.
Items
Gets the collection of task items.
Declaration
public GanttViewDataItemCollection Items { get; }
Property Value
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.
LinkEndMember
Gets or sets a property name which will be used to extract the links end item.
LinkStartMember
Gets or sets a property name which will be used to extract links start item.
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
The link type converter.
LinkTypeMember
Gets or sets a property name which will be used to extract the link type of the data items.
Links
Gets the collection of links.
Declaration
public GanttViewLinkDataItemCollection Links { get; }
Property Value
GanttViewLinkDataItemCollection
The links.
MinimumColumnWidth
Gets or sets the minimum width of a column.
Declaration
public int MinimumColumnWidth { get; set; }
Property Value
The minimum width of a column.
MinimumLinkLength
Gets or sets the minimum length of the link.
Declaration
public int MinimumLinkLength { get; set; }
Property Value
The minimum length of the link.
MinimumTaskWidth
Gets or sets the minimum width of a task when resizing it with the mouse. The size is in pixels and is for the current zoom.
Declaration
public int MinimumTaskWidth { get; set; }
Property Value
The minimum width of the task.
ParentMember
Gets or sets a property name which will be used to define a relation of the data items.
ProgressMember
Gets or sets a property name which will be used to extract the Progress of the data items.
Ratio
Gets or sets the ratio between the text view and the graphical view.
ReadOnly
Gets or sets a value indicating whether the gantt view is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
true if the gantt view is read only; otherwise, false.
ScrollBehavior
Gets the ScrollServiceBehavior that is responsible for kinetic scrolling.
Declaration
public ScrollServiceBehavior ScrollBehavior { get; }
Property Value
SelectedItem
Gets or sets the selected item.
Declaration
public GanttViewDataItem SelectedItem { get; set; }
Property Value
The selected item.
SelectedLink
Gets or sets the selected link item.
Declaration
public GanttViewLinkDataItem SelectedLink { get; set; }
Property Value
The selected link item.
ShowTimelineTodayIndicator
Gets or sets a value indicating whether to show the timeline today indicator.
Declaration
public bool ShowTimelineTodayIndicator { get; set; }
Property Value
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
true if the today indicator is visible; otherwise, false.
SplitterElement
Gets the GanttViewViewsSplitterElement.
Declaration
public GanttViewViewsSplitterElement SplitterElement { get; }
Property Value
The splitter element.
SplitterWidth
Gets or sets the width of the splitter.
Declaration
public int SplitterWidth { get; set; }
Property Value
The width of the splitter.
StartMember
Gets or sets a property name which will be used to extract the start of the data items.
TaskDataMember
Gets or sets the name of the list or table in the data source from which the RadGanttViewElement will extract tasks data.
TextViewElement
Gets the GanttViewTextViewElement.
Declaration
public GanttViewTextViewElement TextViewElement { get; }
Property Value
The text view element.
TitleMember
Gets or sets a property name which will be used to extract the title of the data items.
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
BeginEdit()
Puts the current item in edit mode, allowing the user to modify its properties.
Declaration
public virtual bool BeginEdit()
Returns
true if editing was successfully initiated; otherwise, false.
BeginUpdate()
Begins an update operation, suspending view refreshes until EndUpdate() is called.
Declaration
public void BeginUpdate()
BringIntoView(GanttViewDataItem)
Brings the specified item into view by expanding parent items if necessary and scrolling to make it visible.
Declaration
public void BringIntoView(GanttViewDataItem item)
Parameters
item
The GanttViewDataItem to bring into view.
CancelEdit()
Closes the currently active editor and discards any changes made during the edit operation.
Declaration
public void CancelEdit()
ClearSelection()
Clears the current selection by removing the current and selected state from the currently selected item.
Declaration
public void ClearSelection()
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateGraphicalViewElement(RadGanttViewElement)
Creates and returns a new instance of GanttViewGraphicalViewElement. This method can be overridden to provide custom graphical view element implementations.
Declaration
protected virtual GanttViewGraphicalViewElement CreateGraphicalViewElement(RadGanttViewElement ganttView)
Parameters
ganttView
The parent RadGanttViewElement that will contain the graphical view element.
Returns
A new instance of GanttViewGraphicalViewElement.
CreateNewLink()
Creates a new link.
Declaration
protected virtual GanttViewLinkDataItem CreateNewLink()
Returns
A new GanttViewLinkDataItem
CreateNewTask()
Creates a new task.
Declaration
protected virtual GanttViewDataItem CreateNewTask()
Returns
A new GanttViewDataItem
CreateTextViewElement(RadGanttViewElement)
Creates and returns a new instance of GanttViewTextViewElement. This method can be overridden to provide custom text view element implementations.
Declaration
protected virtual GanttViewTextViewElement CreateTextViewElement(RadGanttViewElement ganttView)
Parameters
ganttView
The parent RadGanttViewElement that will contain the text view element.
Returns
A new instance of GanttViewTextViewElement.
CreateViewsSplitterElement()
Creates and returns a new instance of GanttViewViewsSplitterElement. This method can be overridden to provide custom splitter element implementations.
Declaration
protected virtual GanttViewViewsSplitterElement CreateViewsSplitterElement()
Returns
A new instance of GanttViewViewsSplitterElement.
EndEdit()
Commits any changes and ends the edit operation on the current item.
Declaration
public bool EndEdit()
Returns
true if the edit operation was successfully ended and changes were committed; otherwise, false.
EndEditCore(bool)
Ends the editing of an item and commits or discards the changes based on the specified parameter.
EndUpdate()
Ends the update operation and refreshes the view with any pending changes.
Declaration
public void EndUpdate()
EndUpdate(bool, UpdateActions)
Ends the update operation with control over whether to perform an update and the specific action to take.
Declaration
public void EndUpdate(bool performUpdate, RadGanttViewElement.UpdateActions action)
Parameters
performUpdate
True to perform an update; false to skip the update.
action
RadGanttViewElement.UpdateActions
The RadGanttViewElement.UpdateActions specifying the type of update to perform.
EnsureItemVisibleHorizontal(GanttViewDataItem, GanttViewBaseItemElement)
Ensures that the specified item is visible horizontally in the view by scrolling if necessary.
Declaration
protected virtual void EnsureItemVisibleHorizontal(GanttViewDataItem item, GanttViewBaseItemElement itemElement)
Parameters
item
The GanttViewDataItem to make visible.
itemElement
The GanttViewBaseItemElement representing the item.
EnsureItemVisibleVertical(GanttViewDataItem, GanttViewBaseItemElement)
Ensures that the specified item is visible vertically in the view by scrolling if necessary.
Declaration
protected virtual GanttViewBaseItemElement EnsureItemVisibleVertical(GanttViewDataItem item, GanttViewBaseItemElement itemElement)
Parameters
item
The GanttViewDataItem to make visible.
itemElement
The GanttViewBaseItemElement representing the item, or null if not yet created.
Returns
The GanttViewBaseItemElement for the item after ensuring it's visible.
EnsureItemVisibleVerticalCore(GanttViewDataItem)
Core implementation that ensures an item is visible vertically by calculating scroll offsets and updating the view.
Declaration
protected virtual GanttViewBaseItemElement EnsureItemVisibleVerticalCore(GanttViewDataItem item)
Parameters
item
The GanttViewDataItem to make visible.
Returns
The GanttViewBaseItemElement for the item after ensuring it's visible, or null if not found.
EnsureVisible(GanttViewDataItem)
Ensures that the specified item is visible within the gantt view element, scrolling the contents of the element if necessary.
Declaration
public void EnsureVisible(GanttViewDataItem item)
Parameters
item
The item to scroll into view
GetEditor(Type)
Gets an editor instance of the specified type, creating it if not already cached.
Declaration
protected virtual IInputEditor GetEditor(Type editorType)
Parameters
editorType
The Type of the editor to retrieve.
Returns
An IInputEditor instance of the specified type, or null if creation fails.
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnBindingContextChanged(EventArgs)
Raises the event.
OnContextMenuOpening(GanttViewContextMenuOpeningEventArgs)
Raises the event.
Declaration
protected virtual void OnContextMenuOpening(GanttViewContextMenuOpeningEventArgs e)
Parameters
e
GanttViewContextMenuOpeningEventArgs
The GanttViewContextMenuOpeningEventArgs instance containing the event data.
OnCreateDataItem(CreateGanttDataItemEventArgs)
Raises the event.
Declaration
protected virtual void OnCreateDataItem(CreateGanttDataItemEventArgs e)
Parameters
e
The CreateGanttDataItemEventArgs instance containing the event data.
OnCreateLinkDataItem(CreateGanttLinkDataItemEventArgs)
Raises the event.
Declaration
protected virtual void OnCreateLinkDataItem(CreateGanttLinkDataItemEventArgs e)
Parameters
e
CreateGanttLinkDataItemEventArgs
The CreateGanttLinkDataItemEventArgs instance containing the event data.
OnDataCellCreating(GanttViewDataCellElementCreatingEventArgs)
Raises the event.
Declaration
protected virtual void OnDataCellCreating(GanttViewDataCellElementCreatingEventArgs e)
Parameters
e
GanttViewDataCellElementCreatingEventArgs
The GanttViewDataCellElementCreatingEventArgs instance containing the event data.
OnEditorInitialized(GanttViewItemEditorInitializedEventArgs)
Raises the event.
Declaration
protected virtual void OnEditorInitialized(GanttViewItemEditorInitializedEventArgs e)
Parameters
e
GanttViewItemEditorInitializedEventArgs
The GanttViewItemEditorInitializedEventArgs instance containing the event data.
OnEditorRequired(GanttViewEditorRequiredEventArgs)
Raises the event.
Declaration
protected virtual void OnEditorRequired(GanttViewEditorRequiredEventArgs e)
Parameters
e
GanttViewEditorRequiredEventArgs
The GanttViewEditorRequiredEventArgs instance containing the event data.
OnGraphicalViewItemFormatting(GanttViewGraphicalViewItemFormattingEventArgs)
Raises the event.
Declaration
protected virtual void OnGraphicalViewItemFormatting(GanttViewGraphicalViewItemFormattingEventArgs e)
Parameters
e
GanttViewGraphicalViewItemFormattingEventArgs
The GanttViewGraphicalViewItemFormattingEventArgs instance containing the event data.
OnGraphicalViewLinkItemFormatting(GanttViewLinkItemFormattingEventArgs)
Raises the event.
Declaration
protected virtual void OnGraphicalViewLinkItemFormatting(GanttViewLinkItemFormattingEventArgs e)
Parameters
e
GanttViewLinkItemFormattingEventArgs
The GanttViewLinkItemFormattingEventArgs instance containing the event data.
OnHeaderCellCreating(GanttViewHeaderCellElementCreatingEventArgs)
Raises the event.
Declaration
protected virtual void OnHeaderCellCreating(GanttViewHeaderCellElementCreatingEventArgs e)
Parameters
e
GanttViewHeaderCellElementCreatingEventArgs
The GanttViewHeaderCellElementCreatingEventArgs instance containing the event data.
OnItemAdded(GanttViewItemAddedEventArgs)
Raises the event.
Declaration
protected virtual void OnItemAdded(GanttViewItemAddedEventArgs e)
Parameters
e
The GanttViewItemAddedEventArgs instance containing the event data.
OnItemAdding(GanttViewItemAddingEventArgs)
Raises the event.
Declaration
protected virtual void OnItemAdding(GanttViewItemAddingEventArgs e)
Parameters
e
The GanttViewItemAddingEventArgs instance containing the event data.
OnItemChanged(GanttViewItemChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnItemChanged(GanttViewItemChangedEventArgs e)
Parameters
e
The GanttViewItemChangedEventArgs instance containing the event data.
OnItemChildIdNeeded(GanttViewItemChildIdNeededEventArgs)
Raises the event.
Declaration
protected virtual void OnItemChildIdNeeded(GanttViewItemChildIdNeededEventArgs e)
Parameters
e
GanttViewItemChildIdNeededEventArgs
The GanttViewItemChildIdNeededEventArgs instance containing the event data.
OnItemDataBound(GanttViewItemDataBoundEventArgs)
Raises the event.
Declaration
protected virtual void OnItemDataBound(GanttViewItemDataBoundEventArgs e)
Parameters
e
GanttViewItemDataBoundEventArgs
The GanttViewItemDataBoundEventArgs instance containing the event data.
OnItemDataError(GanttViewItemDataErrorEventArgs)
Raises the event.
Declaration
protected virtual void OnItemDataError(GanttViewItemDataErrorEventArgs e)
Parameters
e
GanttViewItemDataErrorEventArgs
The GanttViewItemDataErrorEventArgs instance containing the event data.
OnItemEdited(GanttViewItemEditedEventArgs)
Raises the event.
Declaration
protected virtual void OnItemEdited(GanttViewItemEditedEventArgs e)
Parameters
e
The GanttViewItemEditedEventArgs instance containing the event data.
OnItemEditing(GanttViewItemEditingEventArgs)
Raises the event.
Declaration
protected virtual void OnItemEditing(GanttViewItemEditingEventArgs e)
Parameters
e
The GanttViewItemEditingEventArgs instance containing the event data.
OnItemElementCreating(GanttViewItemElementCreatingEventArgs)
Raises the event.
Declaration
protected virtual void OnItemElementCreating(GanttViewItemElementCreatingEventArgs e)
Parameters
e
GanttViewItemElementCreatingEventArgs
The GanttViewItemElementCreatingEventArgs instance containing the event data.
OnItemExpandedChanged(GanttViewExpandedChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnItemExpandedChanged(GanttViewExpandedChangedEventArgs e)
Parameters
e
GanttViewExpandedChangedEventArgs
The GanttViewExpandedChangedEventArgs instance containing the event data.
OnItemExpandedChanging(GanttViewDataItem)
Called when an item expanded is changing.
Declaration
protected bool OnItemExpandedChanging(GanttViewDataItem item)
Parameters
item
The item.
Returns
OnItemExpandedChanging(GanttViewExpandedChangingEventArgs)
Raises the event.
Declaration
protected virtual void OnItemExpandedChanging(GanttViewExpandedChangingEventArgs e)
Parameters
e
GanttViewExpandedChangingEventArgs
The GanttViewExpandedChangingEventArgs instance containing the event data.
OnItemPaint(GanttViewItemPaintEventArgs)
Raises the event.
Declaration
protected virtual void OnItemPaint(GanttViewItemPaintEventArgs e)
Parameters
e
The GanttViewItemPaintEventArgs instance containing the event data.
Exceptions
OnItemRemoved(GanttViewItemRemovedEventArgs)
Raises the event.
Declaration
protected virtual void OnItemRemoved(GanttViewItemRemovedEventArgs e)
Parameters
e
The GanttViewItemRemovedEventArgs instance containing the event data.
OnItemValidated(GanttViewItemValidatedEventArgs)
Raises the event.
Declaration
protected virtual void OnItemValidated(GanttViewItemValidatedEventArgs e)
Parameters
e
GanttViewItemValidatedEventArgs
The GanttViewItemValidatedEventArgs instance containing the event data.
OnItemValidating(GanttViewItemValidatingEventArgs)
Raises the event.
Declaration
protected virtual void OnItemValidating(GanttViewItemValidatingEventArgs e)
Parameters
e
GanttViewItemValidatingEventArgs
The GanttViewItemValidatingEventArgs instance containing the event data.
OnLinkAdded(GanttViewLinkAddedEventArgs)
Raises the event.
Declaration
protected virtual void OnLinkAdded(GanttViewLinkAddedEventArgs e)
Parameters
e
The GanttViewLinkAddedEventArgs instance containing the event data.
OnLinkAdding(GanttViewLinkAddingEventArgs)
Raises the event.
Declaration
protected virtual void OnLinkAdding(GanttViewLinkAddingEventArgs e)
Parameters
e
The GanttViewLinkAddingEventArgs instance containing the event data.
OnLinkChanged(GanttViewLinkChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnLinkChanged(GanttViewLinkChangedEventArgs e)
Parameters
e
The GanttViewLinkChangedEventArgs instance containing the event data.
OnLinkDataBound(GanttViewLinkDataBoundEventArgs)
Raises the event.
Declaration
protected virtual void OnLinkDataBound(GanttViewLinkDataBoundEventArgs e)
Parameters
e
GanttViewLinkDataBoundEventArgs
The GanttViewLinkDataBoundEventArgs instance containing the event data.
OnLinkDataError(GanttViewLinkDataErrorEventArgs)
Raises the event.
Declaration
protected virtual void OnLinkDataError(GanttViewLinkDataErrorEventArgs e)
Parameters
e
GanttViewLinkDataErrorEventArgs
The GanttViewLinkDataErrorEventArgs instance containing the event data.
OnLinkRemoved(GanttViewLinkRemovedEventArgs)
Raises the event.
Declaration
protected virtual void OnLinkRemoved(GanttViewLinkRemovedEventArgs e)
Parameters
e
The GanttViewLinkRemovedEventArgs instance containing the event data.
OnLoaded()
Called when the element has been successfully loaded. That includes loading of all its children as well.
Declaration
protected override void OnLoaded()
Overrides
OnMouseDown(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseMove(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseUp(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Raises the event.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs instance containing the event data.
Overrides
OnRootCreated(EventArgs)
Raises the event.
OnSelectedItemChanged(GanttViewSelectedItemChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectedItemChanged(GanttViewSelectedItemChangedEventArgs e)
Parameters
e
GanttViewSelectedItemChangedEventArgs
The GanttViewSelectedItemChangedEventArgs instance containing the event data.
OnSelectedItemChanging(GanttViewSelectedItemChangingEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectedItemChanging(GanttViewSelectedItemChangingEventArgs e)
Parameters
e
GanttViewSelectedItemChangingEventArgs
The GanttViewSelectedItemChangingEventArgs instance containing the event data.
OnSelectedLinkChanged(GanttViewSelectedLinkChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectedLinkChanged(GanttViewSelectedLinkChangedEventArgs e)
Parameters
e
GanttViewSelectedLinkChangedEventArgs
The GanttViewSelectedLinkChangedEventArgs instance containing the event data.
OnSelectedLinkChanging(GanttViewSelectedLinkChangingEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectedLinkChanging(GanttViewSelectedLinkChangingEventArgs e)
Parameters
e
GanttViewSelectedLinkChangingEventArgs
The GanttViewSelectedLinkChangingEventArgs instance containing the event data.
OnTextViewCellFormatting(GanttViewTextViewCellFormattingEventArgs)
Raises the event.
Declaration
protected virtual void OnTextViewCellFormatting(GanttViewTextViewCellFormattingEventArgs e)
Parameters
e
GanttViewTextViewCellFormattingEventArgs
The GanttViewTextViewCellFormattingEventArgs instance containing the event data.
OnTextViewItemFormatting(GanttViewTextViewItemFormattingEventArgs)
Raises the event.
Declaration
protected virtual void OnTextViewItemFormatting(GanttViewTextViewItemFormattingEventArgs e)
Parameters
e
GanttViewTextViewItemFormattingEventArgs
The GanttViewTextViewItemFormattingEventArgs instance containing the event data.
OnTimelineItemElementCreating(GanttViewTimelineItemElementCreatingEventArgs)
Raises the event.
Declaration
protected virtual void OnTimelineItemElementCreating(GanttViewTimelineItemElementCreatingEventArgs e)
Parameters
e
GanttViewTimelineItemElementCreatingEventArgs
The GanttViewTimelineItemElementCreatingEventArgs instance containing the event data.
OnTimelineItemFormatting(GanttViewTimelineItemFormattingEventArgs)
Raises the event.
Declaration
protected virtual void OnTimelineItemFormatting(GanttViewTimelineItemFormattingEventArgs e)
Parameters
e
GanttViewTimelineItemFormattingEventArgs
The GanttViewTimelineItemFormattingEventArgs instance containing the event data.
ProcessCurrentItem(GanttViewDataItem)
Processes the item as current.
Declaration
protected virtual bool ProcessCurrentItem(GanttViewDataItem item)
Parameters
item
The item.
Returns
ProcessDoubleClick(MouseEventArgs)
Processes double click.
Declaration
public virtual bool ProcessDoubleClick(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
ProcessKeyDown(KeyEventArgs)
Processes key down.
Declaration
public virtual bool ProcessKeyDown(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
Returns
ProcessKeyPress(KeyPressEventArgs)
Processes key press.
Declaration
public virtual bool ProcessKeyPress(KeyPressEventArgs e)
Parameters
e
The KeyPressEventArgs instance containing the event data.
Returns
ProcessKeyUp(KeyEventArgs)
Processes key up.
Declaration
public virtual bool ProcessKeyUp(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
Returns
ProcessMouseClick(MouseEventArgs)
Processes mouse click.
Declaration
public virtual bool ProcessMouseClick(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
ProcessMouseDown(MouseEventArgs)
Processes mouse down.
Declaration
public virtual bool ProcessMouseDown(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
ProcessMouseEnter(EventArgs)
Processes mouse enter.
ProcessMouseHover(EventArgs)
Processes mouse hover.
ProcessMouseLeave(EventArgs)
Processes mouse leave.
ProcessMouseMove(MouseEventArgs)
Processes mouse move.
Declaration
public virtual bool ProcessMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
ProcessMouseUp(MouseEventArgs)
Processes mouse up.
Declaration
public virtual bool ProcessMouseUp(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
ProcessMouseWheel(MouseEventArgs)
Processes mouse wheel.
Declaration
public virtual bool ProcessMouseWheel(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
ProcessSelection(GanttViewDataItem)
Processes the item for selection.
Declaration
protected virtual void ProcessSelection(GanttViewDataItem item)
Parameters
item
The item.
ProcessSelection(GanttViewLinkDataItem)
Processes the item for selection.
Declaration
protected virtual void ProcessSelection(GanttViewLinkDataItem link)
Parameters
link
The item.
SynchronizeItemElements()
Synchronizes all item elements.
Declaration
protected virtual void SynchronizeItemElements()
Update(UpdateActions)
Updates the Gantt view according to the specified update action, refreshing both text and graphical views.
Declaration
public void Update(RadGanttViewElement.UpdateActions updateAction)
Parameters
updateAction
RadGanttViewElement.UpdateActions
The RadGanttViewElement.UpdateActions specifying the type of update to perform.
Update(UpdateActions, params GanttViewDataItem[])
Updates the visual items in the Gantt view for the specified data items according to the specified update action.
Declaration
public void Update(RadGanttViewElement.UpdateActions updateAction, params GanttViewDataItem[] items)
Parameters
updateAction
RadGanttViewElement.UpdateActions
The RadGanttViewElement.UpdateActions specifying the type of update to perform.
items
The array of GanttViewDataItem objects to update.
Update(UpdateActions, params GanttViewLinkDataItem[])
Updates the Gantt view for the specified link data items according to the specified update action.
Declaration
public void Update(RadGanttViewElement.UpdateActions updateAction, params GanttViewLinkDataItem[] items)
Parameters
updateAction
RadGanttViewElement.UpdateActions
The RadGanttViewElement.UpdateActions specifying the type of update to perform.
items
The array of GanttViewLinkDataItem objects to update.
UpdateOnExpandedChanged(GanttViewDataItem)
Updates the view when an item's expanded state changes by refreshing scroll ranges and adjusting scroll position.
Declaration
protected virtual bool UpdateOnExpandedChanged(GanttViewDataItem item)
Parameters
item
The GanttViewDataItem whose expanded state has changed.
Returns
True if the update was successful; otherwise, false.
UpdateScrollers(GanttViewDataItem, UpdateActions)
Updates the scrollers.
Declaration
protected virtual void UpdateScrollers(GanttViewDataItem skipItem, RadGanttViewElement.UpdateActions updateAction)
Parameters
skipItem
The skip item.
updateAction
RadGanttViewElement.UpdateActions
The update action.
UpdateScrollersOnAdd(GanttViewDataItem)
Updates the scrollers on add.
Declaration
protected virtual void UpdateScrollersOnAdd(GanttViewDataItem item)
Parameters
item
The item.
Events
BindingContextChanged
Occurs when the binding context is changed.
Declaration
public event EventHandler BindingContextChanged
Event Value
ContextMenuOpening
Occurs when a context menu is about to be opened.
Declaration
public event GanttViewContextMenuOpeningEventHandler ContextMenuOpening
Event Value
CreateDataItem
Occurs when a new data item is created.
Declaration
public event CreateGanttDataItemEventHandler CreateDataItem
Event Value
CreateLinkDataItem
Occurs when a new link data item is created.
Declaration
public event CreateGanttLinkDataItemEventHandler CreateLinkDataItem
Event Value
DataCellElementCreating
Occurs when a new data cell element needs to be created.
Declaration
public event GanttViewDataCellElementCreatingEventHandler DataCellElementCreating
Event Value
EditorInitialized
Occurs when an editor has been initialized.
Declaration
public event GanttViewItemEditorInitializedEventHandler EditorInitialized
Event Value
EditorRequired
Occurs when an editor is required to edit a cell the text view.
Declaration
public event GanttViewEditorRequiredEventHandler EditorRequired
Event Value
GraphicalViewItemFormatting
Occurs when the state of an item in the GanttViewGraphicalViewElement changes and it needs to be formatted.
Declaration
public event GanttViewGraphicalViewItemFormattingEventHandler GraphicalViewItemFormatting
Event Value
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 Value
HeaderCellElementCreating
Occurs when a new header cell element needs to be created.
Declaration
public event GanttViewHeaderCellElementCreatingEventHandler HeaderCellElementCreating
Event Value
ItemAdded
Occurs when a new item is added to the Items collection.
Declaration
public event GanttViewItemAddedEventHandler ItemAdded
Event Value
ItemAdding
Occurs before an GanttViewDataItem is added to the Items collection.
Declaration
public event GanttItemAddingEventHandler ItemAdding
Event Value
ItemChanged
Occurs when an item's property is changed.
Declaration
public event GanttViewItemChangedEventhandler ItemChanged
Event Value
ItemChildIdNeeded
Occurs when an item needs an id for storing in data sources.
Declaration
public event GanttViewItemChildIdNeededEventHandler ItemChildIdNeeded
Event Value
ItemDataBound
Occurs when an item is data bound.
Declaration
public event GanttViewItemDataBoundEventHandler ItemDataBound
Event Value
ItemDataError
Fired when there is an error in the data layer of RadGanttView related to data operations with Item objects.
Declaration
public event GanttItemDataErrorEventHandler ItemDataError
Event Value
ItemEdited
Occurs when an item has been edited.
Declaration
public event GanttViewItemEditedEventHandler ItemEdited
Event Value
ItemEditing
Occurs when an cell is about to be edited.
Declaration
public event GanttViewItemEditingEventHandler ItemEditing
Event Value
ItemElementCreating
Occurs when an item element needs to be created.
Declaration
public event GanttViewItemElementCreatingEventHandler ItemElementCreating
Event Value
ItemExpandedChanged
Occurs after an item is expanded or collapsed.
Declaration
public event GanttViewExpandedChangedEventHandler ItemExpandedChanged
Event Value
ItemExpandedChanging
Occurs when an item is about to be expanded or collapsed.
Declaration
public event GanttViewExpandedChangingEventHandler ItemExpandedChanging
Event Value
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 Value
ItemRemoved
Occurs when an item removed from the Items collection.
Declaration
public event GanttViewItemRemovedEventHandler ItemRemoved
Event Value
ItemValidated
Occurs when an item is validated.
Declaration
public event GanttViewItemValidatedEventHandler ItemValidated
Event Value
ItemValidating
Occurs when an item validating is edited and needs to be validated.
Declaration
public event GanttViewItemValidatingEventHandler ItemValidating
Event Value
LinkAdded
Occurs when a new link added to the Links collection.
Declaration
public event GanttViewLinkAddedEventHandler LinkAdded
Event Value
LinkAdding
Occurs before an GanttViewLinkDataItem is added to the Links collection.
Declaration
public event GanttLinkAddingEventHandler LinkAdding
Event Value
LinkChanged
Occurs when a link's property is changed.
Declaration
public event GanttViewLinkChangedEventHandler LinkChanged
Event Value
LinkDataBound
Occurs when a link is data bound.
Declaration
public event GanttViewLinkDataBoundEventHandler LinkDataBound
Event Value
LinkDataError
Fired when there is an error in the data layer of RadGanttView related to data operations with Link objects.
Declaration
public event GanttLinkDataErrorEventHandler LinkDataError
Event Value
LinkRemoved
Occurs when a link is removed from the Links collection.
Declaration
public event GanttViewLinkRemovedEventHandler LinkRemoved
Event Value
RootCreated
Occurs when the root item is created.
SelectedItemChanged
Occurs when selected item has been changed.
Declaration
public event GanttViewSelectedItemChangedEventHandler SelectedItemChanged
Event Value
SelectedItemChanging
Occurs when the selected item is about to be changed.
Declaration
public event GanttViewSelectedItemChangingEventHandler SelectedItemChanging
Event Value
SelectedLinkChanged
Occurs when selected link has been changed.
Declaration
public event GanttViewSelectedLinkChangedEventHandler SelectedLinkChanged
Event Value
SelectedLinkChanging
Occurs when the selected link is about to be changed.
Declaration
public event GanttViewSelectedLinkChangingEventHandler SelectedLinkChanging
Event Value
TextViewCellFormatting
Occurs when the content of a cell needs to be formatted for display.
Declaration
public event GanttViewTextViewCellFormattingEventHandler TextViewCellFormatting
Event Value
TextViewItemFormatting
Occurs when the state of an item in the GanttViewTextViewElement changes and it needs to be formatted.
Declaration
public event GanttViewTextViewItemFormattingEventHandler TextViewItemFormatting
Event Value
TimelineItemElementCreating
Occurs when a timeline item element needs to be created.
Declaration
public event GanttViewTimelineItemElementCreatingEventHandler TimelineItemElementCreating
Event Value
TimelineItemFormatting
Occurs when the state of a timeline item changes and it needs to be formatted.
Declaration
public event GanttViewTimelineItemFormattingEventHandler TimelineItemFormatting
Event Value