RadBreadcrumb for ASP.NET AJAX is based on the Kendo UI Breadcrumb Widget. Thus, it exposes the Client-side API and methods offered by the widget and mainly provides a wrapper and API for working with the Breadcrumb on the server.
You can get Client-side Object Reference to the Breadcrumb control in order to use its API like this:
var
RadBreadcrumbObject = $find(
"<%=RadBreadcrumb1.ClientID %>"
);
The most commonly used RadBreadcrumb client-side methods are:
-
get_items—Returns the collection of breadcrumb items.
-
get_value—Returns the value of the Breadcrumb.
-
set_value—Sets the value of the Breadcrumb.
-
repaint—Repaints the control.
You can find the full client-side API of the control in the RadBreadcrumb Client-side API documentation article.
Get Client-side Object Reference to the Kendo Breadcrumb widget in order to use its API
There are two ways to get a reference to the Kendo Breadcrumb widget in order to use its API:
-
Use the get_kendoWidget method the RadBreadcrumb client-side object exposes. You can get the RadBreadcrumb object through the $find() MS AJAX method:
var
RadBreadcrumbObject = $find(
"<%=RadBreadcrumb1.ClientID %>"
);
//the standard script control object
var
kendoBreadcrumbObject = RadBreadcrumbObject.get_kendoWidget();
//the Kendo widget
-
Use the standard Kendo approach for getting the widget through the data-attributes of the DOM element:
var
kendoBreadcrumbObject = $telerik.$(
"#<%=RadBreadcrumb1.ClientID %>"
).data(
"kendoBreadcrumb"
);
//the jQuery selector must get the RadBreadcrumb1 select element