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

RadBreadcrumb object

This article lists the client-side API of RadBreadcrumb and shows 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 breadcrumbObject = $find("<%=RadBreadcrumb1.ClientID %>");

RadBreadcrumb is a server-side wrapper over the Kendo UI Breadcrumb 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 breadcrumbObject  = $find("<%=RadBreadcrumb1.ClientID %>"); //the standard script control object
      var kendoBreadcrumb = breadcrumbObject.get_kendoWidget(); //the Kendo widget
  • Get the Kendo Widget in its usual way. Make sure to use the $telerik.$ jQuery reference:

    JavaScript
      var kendoBreadcrumb = $telerik.$("#<%=RadBreadcrumb1.ClientID %>").data("kendoBreadcrumb"); 

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

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

NameParametersReturn TypeDescription
disposenonenoneDestroys the underlying Kendo widget (calls its destroy method). Once you call it, you will not be able to use the widget or control.
get_itemsnoneArrayReturns the collection of breadcrumb items.
get_valuenoneStringReturns the value of the breadcrumb
set_valueStringnoneSets the value of the breadcrumb
repaintBooleannoneRepaints the control. The "force" argument determines whether the resizing routine should be executed even if the respective widget's outer dimensions have not changed.

See Also

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