ClassBaseGanttViewTimelineBehavior
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseGanttViewTimelineBehavior
Inheritance: objectBaseGanttViewTimelineBehavior
Constructors
BaseGanttViewTimelineBehavior()
Declaration
public BaseGanttViewTimelineBehavior()
Properties
AdjustedTimelineEnd
Gets a value which enlarges the timeline end so only whole cells would be displayed.
Declaration
public virtual DateTime AdjustedTimelineEnd { get; }
Property Value
AdjustedTimelineStart
Gets a value which enlarges the timeline start so only whole cells would be displayed.
Declaration
public virtual DateTime AdjustedTimelineStart { get; }
Property Value
GraphicalViewElement
Gets the gantt graphical view this behavior is associated with.
Declaration
public GanttViewGraphicalViewElement GraphicalViewElement { get; }
Property Value
RangesMinWidths
Gets a dictionary where the key is a time ranges and the value is the minimum width for a single item in the timeline view for that time range.
TimelineLowerItemFormat
Gets or sets the format for the lower row items of the timeline.
Declaration
public virtual string TimelineLowerItemFormat { get; set; }
Property Value
The timeline lower item format.
TimelineUpperItemFormat
Gets or sets the format for the upper row items of the timeline.
Declaration
public virtual string TimelineUpperItemFormat { get; set; }
Property Value
The timeline upper item format.
Methods
BuildTimelineDataItems(TimeRange)
Gets a list of GanttViewTimelineDataItems that will be shown in the timeline.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItems(TimeRange range)
Parameters
range
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForDayHalfHoursRange()
Returns a list of GanttViewTimelineDataItems for day range with half hours for the sub-items.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayHalfHoursRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForDayQuarterHoursRange()
Returns a list of GanttViewTimelineDataItems for da range with quarter hours for the sub-items.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayQuarterHoursRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForDayRange()
Returns a list of GanttViewTimelineDataItems for day range.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForHourRange()
Returns a list of GanttViewTimelineDataItems for hour range.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForHourRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForMonthRange()
Returns a list of GanttViewTimelineDataItems for month range.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForMonthRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForWeekRange()
Returns a list of GanttViewTimelineDataItems for week range.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForWeekRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForYearHalvesRange()
Returns a list of GanttViewTimelineDataItems for year range with half years for the sub-items.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearHalvesRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForYearQuartersRange()
Returns a list of GanttViewTimelineDataItems for year range with quarter years for the sub-items.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearQuartersRange()
Returns
IList<GanttViewTimelineDataItem>
BuildTimelineDataItemsForYearRange()
Returns a list of GanttViewTimelineDataItems for year range.
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearRange()
Returns
IList<GanttViewTimelineDataItem>
CreateElement()
Creates the element.
Declaration
public virtual GanttViewTimelineCellElement CreateElement()
Returns
FillRangesMinWidths()
Fills the RangesMinWidths property (dictionary) with the minimum width for each TimeRange. These values are used when AutomaticTimelineTimeRange is se to true.
Declaration
public virtual void FillRangesMinWidths()
GetAutoTimeRange(TimeRange, bool)
Gets a new time range based on the current state of the RadGanttView. If no change is needed returns the value of the input range.
Declaration
public virtual TimeRange GetAutoTimeRange(TimeRange currentRange, bool zoomIn)
Parameters
currentRange
The current TimeRange.
zoomIn
Indicates whether a zoom-in or a zoom-out operation is performed.
Returns
A value of the TimeRange enumeration. If no change is needed returns the input range.
GetTimelineBottomElementText(GanttViewTimelineDataItem, int)
Gets the timeline lower element text for the specified index.
Declaration
public virtual string GetTimelineBottomElementText(GanttViewTimelineDataItem item, int index)
Parameters
item
The timeline item.
index
The index of the lower element.
Returns
GetTimelineCellInfoForDayHalfHoursRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayHalfHoursRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForDayQuarterHoursRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayQuarterHoursRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForDayRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForHourRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForHourRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForItem(GanttViewTimelineDataItem, TimeRange)
Gets the number of cells and optionally a start index to be displayed for the given timeline data item and time range.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForItem(GanttViewTimelineDataItem item, TimeRange timeRange)
Parameters
item
The data item for which the cell info is calculated.
timeRange
The time range for which the cell info is calculated.
Returns
GetTimelineCellInfoForMonthRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForMonthRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForWeekRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForWeekRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForYearHalvesRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearHalvesRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForYearQuartersRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearQuartersRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineCellInfoForYearRange(GanttViewTimelineDataItem)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
Declaration
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearRange(GanttViewTimelineDataItem item)
Parameters
item
Returns
GetTimelineTopElementText(GanttViewTimelineDataItem)
Gets the time line top element text.
Declaration
public virtual string GetTimelineTopElementText(GanttViewTimelineDataItem item)
Parameters
item
The item to get text for.
Returns
WeekNumber(DateTime)
Gets the week number for the given date using ISO8601 stadard.