New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Client-side Events



Event log

RadBreadcrumb exposes the following client-side events:

  • OnInitialize—Fired just before the RadBreadcrumb client-side object is initialized.
  • OnLoad—Fired when RadBreadcrumb is initialized.
  • OnClick—Fired when an item or a rootItem is clicked. Cancelable.
  • OnChange—Fired when the value of the Breadcrumb is changed.
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • scripts.js
<%@ Page CodeFile="DefaultCS.aspx.cs" Language="c#" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Breadcrumb.ClientSideEvents.DefaultCS"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <script src="scripts.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container" runat="server">
        <telerik:RadBreadcrumb runat="server" ID="RadBreadcrumb">
            <ClientEvents OnInitialize="onInitialize" OnLoad="onLoad" OnClick="onClick" OnChange="onChange" />
            <Items>
                <telerik:BreadcrumbItem Type="RootItem" ShowText="true" Text="Telerik UI for ASP.NET AJAX" />
                <telerik:BreadcrumbItem Text="Controls" ShowIcon="true" Icon="folder-open" />
                <telerik:BreadcrumbItem Text="RadBreadcrumb" ShowIcon="true" Icon="folder-open" />
                <telerik:BreadcrumbItem Text="Client-side Events" Icon="star" ShowIcon="true" />
            </Items>
        </telerik:RadBreadcrumb>
        <br />
        <br />
        <telerik:RadButton ID="Button1" runat="server" Text="Refresh Breadcrumb">
            <Icon PrimaryIconCssClass="rbRefresh"></Icon>
        </telerik:RadButton>
    </div>
    <qsf:EventLogConsole runat="server" ID="EventLogConsole1" AllowClear="true"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance