Class BaseGanttViewTimelineBehavior
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class BaseGanttViewTimelineBehavior
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
System.
|
AdjustedTimelineStart
Gets a value which enlarges the timeline start so only whole cells would be displayed.
Declaration
public virtual DateTime AdjustedTimelineStart { get; }
Property Value
System.
|
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.
Declaration
protected Dictionary<TimeRange, int> RangesMinWidths { get; }
Property Value
System.
|
TimelineLowerItemFormat
Gets or sets the format for the lower row items of the timeline.
Declaration
public virtual string TimelineLowerItemFormat { get; set; }
Property Value
System. 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
System. The timeline upper item format. |
Methods
BuildTimelineDataItems(TimeRange)
Gets a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItems(TimeRange range)
Parameters
Time
|
Returns
System.
|
BuildTimelineDataItemsForDayHalfHoursRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayHalfHoursRange()
Returns
System.
|
BuildTimelineDataItemsForDayQuarterHoursRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayQuarterHoursRange()
Returns
System.
|
BuildTimelineDataItemsForDayRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayRange()
Returns
System.
|
BuildTimelineDataItemsForHourRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForHourRange()
Returns
System.
|
BuildTimelineDataItemsForMonthRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForMonthRange()
Returns
System.
|
BuildTimelineDataItemsForWeekRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForWeekRange()
Returns
System.
|
BuildTimelineDataItemsForYearHalvesRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearHalvesRange()
Returns
System.
|
BuildTimelineDataItemsForYearQuartersRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearQuartersRange()
Returns
System.
|
BuildTimelineDataItemsForYearRange()
Returns a list of Gantt
Declaration
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearRange()
Returns
System.
|
CreateElement()
Creates the element.
Declaration
public virtual GanttViewTimelineCellElement CreateElement()
Returns
FillRangesMinWidths()
Fills the RangesMinWidths property (dictionary) with the minimum width for each Time
Declaration
public virtual void FillRangesMinWidths()
GetAutoTimeRange(TimeRange, Boolean)
Gets a new time range based on the current state of the Rad
Declaration
public virtual TimeRange GetAutoTimeRange(TimeRange currentRange, bool zoomIn)
Parameters
Time The current Time |
System. Indicates whether a zoom-in or a zoom-out operation is performed. |
Returns
GetTimelineBottomElementText(GanttViewTimelineDataItem, Int32)
Gets the timeline lower element text for the specified index.
Declaration
public virtual string GetTimelineBottomElementText(GanttViewTimelineDataItem item, int index)
Parameters
Gantt The timeline item. |
System. The index of the lower element. |
Returns
System.
|
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
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
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
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
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
Gantt The data item for which the cell info is calculated. |
Time 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
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
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
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
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
Returns
GetTimelineTopElementText(GanttViewTimelineDataItem)
Gets the time line top element text.
Declaration
public virtual string GetTimelineTopElementText(GanttViewTimelineDataItem item)
Parameters
Gantt The item to get text for. |
Returns
System.
|
WeekNumber(DateTime)
Gets the week number for the given date using ISO8601 stadard.
Declaration
public virtual int WeekNumber(DateTime date)
Parameters
System. The date. |
Returns
System.
|