New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadTimeline Object

This article lists the client-side API of RadTimeline and how to use it.

To use the API, you must first get a reference to the control's client-side object. For example:

JavaScript
var timelineObject = $find("<%=RadTimeline1.ClientID %>");

RadTimeline is a server-side wrapper over the Kendo UI Timeline Widget. Thus, it exposes the API of the underlying Kendo widget. To get a reference to the Kendo widget instance, you can do either of the following:

  • Use the get_kendoWidget() method of the MS AJAX wrapper:

    JavaScript
      var timelineObject  = $find("<%=RadTimeline1.ClientID %>"); //the standard script control object
      var kendoTimeline = timelineObject.get_kendoWidget(); //the Kendo widget
  • Get the Kendo Widget in its usual way. Make sure to use the $telerik.$ jQuery reference:

    JavaScript
      var kendoTimeline = $telerik.$("#<%=RadTimeline1.ClientID %>").data("kendoTimeline"); //the jQuery selector must get the RadTimeline1 wrapper span element

In addition to using the Kendo method directly, you can also use their wrappers that follow the MS AJAX convention through the RadTimeline client object.

Table1: Client-side methods exposed by the MS AJAX RadTimeline object

NameParametersReturn TypeDescription
collapseobjectnoneCollapses an event in vertical mode. See the underlying collapse method for more details on its behavior.
expandobjectnoneExpands an event in vertical mode. See the underlying expand method for more details on its behavior.
disposenonenoneDisposes the Timeline client-side object (calls its underlying Kendo widget's destroy method). Once you call it, you will not be able to use the widget or control.
get_clientDataSourcenoneRadClientDataSourceReturns a reference to the underlying RadClientDataSource control.
get_kendoWidgetnoneobjectReturns a reference to the underlying Kendo Timeline widget.
get_itemsnonejQuery collectionReturns a jQuery collection of the DOM elements of the visible Timeline events.
get_dataItemsnonecollectionReturns a collection of the data items available in the underlying data source.
get_orientationnoneNumberReturns the orienation of the timeline axis. The possible return values are 0 = Vertical and 1 = Horizontal
nextnonenoneSwitches to the next portion of events with animation in horizontal mode.
openobjectnoneOpens event details in horizontal mode.
previousnonenoneSwitches to the previous portion of events with animation in horizontal mode.
rеpaintnonenoneRedraws the Timeline widget.

See Also

In this article
See Also
Not finding the help you need?
Contact Support