Class
BaseGanttViewTimelineBehavior

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class BaseGanttViewTimelineBehavior

Inheritance: objectBaseGanttViewTimelineBehavior

Constructors

BaseGanttViewTimelineBehavior()

Declaration

cs-api-definition
public BaseGanttViewTimelineBehavior()

Properties

AdjustedTimelineEnd

Gets a value which enlarges the timeline end so only whole cells would be displayed.

Declaration

cs-api-definition
public virtual DateTime AdjustedTimelineEnd { get; }

Property Value

DateTime

AdjustedTimelineStart

Gets a value which enlarges the timeline start so only whole cells would be displayed.

Declaration

cs-api-definition
public virtual DateTime AdjustedTimelineStart { get; }

Property Value

DateTime

GraphicalViewElement

Gets the gantt graphical view this behavior is associated with.

Declaration

cs-api-definition
public GanttViewGraphicalViewElement GraphicalViewElement { get; }

Property Value

GanttViewGraphicalViewElement

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

cs-api-definition
protected Dictionary<TimeRange, int> RangesMinWidths { get; }

Property Value

Dictionary<TimeRange, int>

TimelineLowerItemFormat

Gets or sets the format for the lower row items of the timeline.

Declaration

cs-api-definition
public virtual string TimelineLowerItemFormat { get; set; }

Property Value

string

The timeline lower item format.

TimelineUpperItemFormat

Gets or sets the format for the upper row items of the timeline.

Declaration

cs-api-definition
public virtual string TimelineUpperItemFormat { get; set; }

Property Value

string

The timeline upper item format.

Methods

BuildTimelineDataItems(TimeRange)

Gets a list of GanttViewTimelineDataItems that will be shown in the timeline.

Declaration

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItems(TimeRange range)

Parameters

range

TimeRange

Returns

IList<GanttViewTimelineDataItem>

BuildTimelineDataItemsForDayHalfHoursRange()

Returns a list of GanttViewTimelineDataItems for day range with half hours for the sub-items.

Declaration

cs-api-definition
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

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayQuarterHoursRange()

Returns

IList<GanttViewTimelineDataItem>

BuildTimelineDataItemsForDayRange()

Returns a list of GanttViewTimelineDataItems for day range.

Declaration

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForDayRange()

Returns

IList<GanttViewTimelineDataItem>

BuildTimelineDataItemsForHourRange()

Returns a list of GanttViewTimelineDataItems for hour range.

Declaration

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForHourRange()

Returns

IList<GanttViewTimelineDataItem>

BuildTimelineDataItemsForMonthRange()

Returns a list of GanttViewTimelineDataItems for month range.

Declaration

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForMonthRange()

Returns

IList<GanttViewTimelineDataItem>

BuildTimelineDataItemsForWeekRange()

Returns a list of GanttViewTimelineDataItems for week range.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearQuartersRange()

Returns

IList<GanttViewTimelineDataItem>

BuildTimelineDataItemsForYearRange()

Returns a list of GanttViewTimelineDataItems for year range.

Declaration

cs-api-definition
public virtual IList<GanttViewTimelineDataItem> BuildTimelineDataItemsForYearRange()

Returns

IList<GanttViewTimelineDataItem>

CreateElement()

Creates the element.

Declaration

cs-api-definition
public virtual GanttViewTimelineCellElement CreateElement()

Returns

GanttViewTimelineCellElement

FillRangesMinWidths()

Fills the RangesMinWidths property (dictionary) with the minimum width for each TimeRange. These values are used when AutomaticTimelineTimeRange is se to true.

Declaration

cs-api-definition
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

cs-api-definition
public virtual TimeRange GetAutoTimeRange(TimeRange currentRange, bool zoomIn)

Parameters

currentRange

TimeRange

The current TimeRange.

zoomIn

bool

Indicates whether a zoom-in or a zoom-out operation is performed.

Returns

TimeRange

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

cs-api-definition
public virtual string GetTimelineBottomElementText(GanttViewTimelineDataItem item, int index)

Parameters

item

GanttViewTimelineDataItem

The timeline item.

index

int

The index of the lower element.

Returns

string

GetTimelineCellInfoForDayHalfHoursRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayHalfHoursRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForDayQuarterHoursRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayQuarterHoursRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForDayRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForDayRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForHourRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForHourRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

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

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForItem(GanttViewTimelineDataItem item, TimeRange timeRange)

Parameters

item

GanttViewTimelineDataItem

The data item for which the cell info is calculated.

timeRange

TimeRange

The time range for which the cell info is calculated.

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForMonthRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForMonthRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForWeekRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForWeekRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForYearHalvesRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearHalvesRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForYearQuartersRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearQuartersRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineCellInfoForYearRange(GanttViewTimelineDataItem)

Returns the number of cells and optionally a start index to be displayed for the given timeline data item.

Declaration

cs-api-definition
public virtual GanttTimelineCellsInfo GetTimelineCellInfoForYearRange(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

Returns

GanttTimelineCellsInfo

GetTimelineTopElementText(GanttViewTimelineDataItem)

Gets the time line top element text.

Declaration

cs-api-definition
public virtual string GetTimelineTopElementText(GanttViewTimelineDataItem item)

Parameters

item

GanttViewTimelineDataItem

The item to get text for.

Returns

string

WeekNumber(DateTime)

Gets the week number for the given date using ISO8601 stadard.

Declaration

cs-api-definition
public virtual int WeekNumber(DateTime date)

Parameters

date

DateTime

The date.

Returns

int