Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseGanttViewTimelineBehavior
Inheritance: objectBaseGanttViewTimelineBehavior
Constructors
public BaseGanttViewTimelineBehavior()
Properties
Gets a value which enlarges the timeline end so only whole cells would be displayed.
public virtual DateTime AdjustedTimelineEnd { get; }
Gets a value which enlarges the timeline start so only whole cells would be displayed.
public virtual DateTime AdjustedTimelineStart { get; }
Gets the gantt graphical view this behavior is associated with.
public GanttViewGraphicalViewElement GraphicalViewElement { get; }
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.
protected Dictionary<TimeRange, int> RangesMinWidths { get; }
Gets or sets the format for the lower row items of the timeline.
public virtual string TimelineLowerItemFormat { get; set; }
The timeline lower item format.
Gets or sets the format for the upper row items of the timeline.
public virtual string TimelineUpperItemFormat { get; set; }
The timeline upper item format.
Methods
Gets a list of GanttViewTimelineDataItems that will be shown in the timeline.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItems(TimeRange range)
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for day range with half hours for the sub-items.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayHalfHoursRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for da range with quarter hours for the sub-items.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayQuarterHoursRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for day range.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for hour range.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForHourRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for month range.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForMonthRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for week range.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForWeekRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for year range with half years for the sub-items.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearHalvesRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for year range with quarter years for the sub-items.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearQuartersRange()
IList<GanttViewTimelineDataItem>
Returns a list of GanttViewTimelineDataItems for year range.
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearRange()
IList<GanttViewTimelineDataItem>
Creates the element.
public virtual GanttViewTimelineCellElement CreateElement()
Fills the RangesMinWidths property (dictionary) with the minimum width for each TimeRange. These values are used when AutomaticTimelineTimeRange is se to true.
public virtual void FillRangesMinWidths()
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.
public virtual TimeRange GetAutoTimeRange(TimeRange currentRange, bool zoomIn)
The current TimeRange.
zoomInboolIndicates 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.
Gets the timeline lower element text for the specified index.
public virtual string GetTimelineBottomElementText(GanttViewTimelineDataItem item, int index)
The timeline item.
indexintThe index of the lower element.
Returns:Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayHalfHoursRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayQuarterHoursRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForHourRange(GanttViewTimelineDataItem item)
Gets the number of cells and optionally a start index to be displayed for the given timeline data item and time range.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForItem(GanttViewTimelineDataItem item, TimeRange timeRange)
The data item for which the cell info is calculated.
timeRangeTimeRangeThe time range for which the cell info is calculated.
Returns:Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForMonthRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForWeekRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearHalvesRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearQuartersRange(GanttViewTimelineDataItem item)
Returns the number of cells and optionally a start index to be displayed for the given timeline data item.
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearRange(GanttViewTimelineDataItem item)
Gets the time line top element text.
public virtual string GetTimelineTopElementText(GanttViewTimelineDataItem item)
The item to get text for.
Returns: