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

Client-side Events

Select a command
  • Command 1
  • Command 2
  • Command 3
Event log

RadSplitButton provides the following client-side events:

  • OnClientLoad - raised when the button is initialized.
  • OnClientClicking - raised when the user clicks the button. The event can be canceled.
  • OnClientClicked - raised when the button has been clicked. The event is subsequent to the OnClientClicking event.
  • OnClientMouseOver - raised when the mouse pointer is positioned over the button.
  • OnClientMouseOut - raised when the mouse pointer leaves the button.
  • OnClientContextMenuItemClicked - raised when an item from the dropdown menu is clicked.
  • DefaultCS.aspx
  • scripts.js
<%@ Page Language="C#" AutoEventWireup="true"  %>

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

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <script src="scripts.js" type="text/javascript"></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 size-thin" style="text-align: center">
        <telerik:RadSplitButton runat="server" ID="RadSplitButton1" Text="Select a command" CommandName="commandSelect" Width="200px"
            OnClientLoad="telerikDemo.OnClientLoad"
            OnClientClicking="telerikDemo.OnClientClicking"
            OnClientClicked="telerikDemo.OnClientClicked"
            OnClientMouseOver="telerikDemo.OnClientMouseOver"
            OnClientMouseOut="telerikDemo.OnClientMouseOut"
            OnClientContextMenuItemClicked="telerikDemo.OnClientContextMenuItemClicked" >
            <ContextMenu runat="server">
                <Items>
                    <telerik:RadMenuItem Text="Command 1" Value="command1" MyAttribute="args1"></telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Command 2" Value="command2" MyAttribute="args2"></telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Command 3" Value="command3" MyAttribute="args3"></telerik:RadMenuItem>
                </Items>
            </ContextMenu>
        </telerik:RadSplitButton>
    </div>
    <qsf:EventLogConsole ID="EventLogConsole" runat="server" AllowClear="true"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance