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

Binding the Nested ContextMenu

Select a command

The RadContextMenu embedded in RadSplitButton is a fully functional Menu having the same properties, methods, and events like the RadMenu. Similar to the RadMenu the Context menu in the SplitButton can be bound to various types of data sources.

All the properties related to the context menu binding are accessible in the markup within the ContextMenu inner tag and in the code-behind via the ContextMenu property.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Title="" Language="VB"  AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.Web.Examples.SplitButton.DataBinding.ClientSide.DefaultVB" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</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">
        <telerik:RadSplitButton runat="server" ID="RadSplitButton1" Text="Select a command" CommandName="Select" Width="200px">
            <ContextMenu Height="400px" runat="server">
            </ContextMenu>
        </telerik:RadSplitButton>
        <br />
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance