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

Binding the Nested ContextMenu

Select a command
  • Cut
  • Copy
  • Paste
  • Flip horizontaly
  • Flip Vertically
  • Rotate Left
  • Rotate Right

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.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ Page Title="" Language="C#"  AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.SplitButton.DataBinding.ClientSide.DefaultCS" %>

<%@ 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>
</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