Properties
This help topic will make you familiar with the most important properties, settings and elements of the RadTimeline control.
- AnnotationContentTemplate: A property of type DataTemplate that gets or sets the annotation content template.
- AnnotationContentPath: A property of type string that gets or sets the annotation content path.
- AnnotationDurationPath: A property of type string that gets or sets the duration of the annotation.
- AnnotationZIndexPath: A property of type string that gets or sets the annotation z-index path.
- AnnotationStartPath: A property of type string that gets or sets the annotation start path.
- Annotations: A property of type string that gets or sets the annotations path.
- AnnotationsSource: A property of type IEnumerable that gets or sets the annotation source.
- TimelineInstantItemTemplate: A property of type DataTemplate that gets or sets the instant event template.
- TimelineItemTemplate: A property of type DataTemplate that gets or sets the event template.
- ToolTipTemplate: A property of type DataTemplate that gets or sets the template of the ToolTip.
- ToolTipFormat: A property of type string that gets or sets the ToolTip format.
- ToolTipPath: A property of type string that gets or sets the ToolTip path.
- SelectedItems: A property of type IList that gets the selected items.
- SelectedItem: A property of type object that gets or sets the selected item.
- SelectionMode: An enumeration property of type SelectionMode that gets or sets the selection mode of the control: (Single, Multiple, and Extended)
- IsSelectionEnabled: A property of type bool that disables or enables the selection functionality of the control.
- GroupExpandMode: A enumeration property of type GroupExpandMode that gets or sets the group expand mode of the groups: (None, Single, and Multiple)
- GroupPath: A property of type string that gets or sets the group path.
- MinimumItemGap: A property of type TimeSpan that gets or sets the minimum gap between two items on the same row.
- AutoSort: A property of type bool that indicates if the timeline items will be ordered automatically by Start and Duration or not.
- VerticalScrollBarVisibility: An enumeration property of type ScrollBarVisibility that shows or hides the vertical ScrollBar.
- DataItems: A property of type IEnumerable<TimelineDataItem> that returns a collection of Timeline items.
- GroupedDataItems: A property of type IEnumerable<TimelineDataItemGroup> that returns a collection of the grouped items.
- DataGroups: A property of type List<TimelineGroupData> that returns a collection of a group of none intersecting items.
- ItemRowIndexGenerator: A property of type IItemRowIndexGenerator that gets or sets IItemRowIndexGenerator instance that generates row indexes for the items based on custom logic.
- StartPath: A property of type string that gets or sets the name of the property from the underlying datasource, which will determine the start time for the data.
- DurationPath: A property of type string that gets or sets the name of the property from the underlying datasource, which will determine the end time for the data.
- PeriodStart and PeriodEnd: These properties are of type DateTime and determine the start and end time period in the Timeline control.
-
Intervals: Currently the supported intervals are:
- Century
- Decade
- Year
- Quarter
- Month
- Week
- Day
- Hour
- Minute
- Second
- Millisecond
Example 1: Setting the RadTimeline Intervals
<telerik:RadTimeline.Intervals>
<telerik:CenturyInterval />
<telerik:DecadeInterval />
<telerik:YearInterval />
<telerik:MonthInterval/>
</telerik:RadTimeline.Intervals>
- IntervalSpans: It is used to group the given interval items together. Example 2 shows how you can group the seconds in groups of 10. Example 3 demonstrates that you can also set more than one IntervalSpan simultaneously by separating them with comma.
Example 2: Setting the IntervalSpans
<telerik:RadTimeline.Intervals>
<telerik:YearInterval IntervalSpans="10"/>
</telerik:RadTimeline.Intervals>
Example 3: Setting multiple IntervalSpans
<telerik:RadTimeline.Intervals>
<telerik:YearInterval IntervalSpans="1,5" />
<telerik:MonthInterval IntervalSpans="1,6" />
</telerik:RadTimeline.Intervals>
- MinZoomRange and MaxZoomRange: These properties set the minimum and maximum range that the TimeLine can be zoomed.