Context Menu on Navigation

2 posts, 0 answers
  1. Nihan dK
    Nihan dK avatar
    3 posts
    Member since:
    Feb 2006

    Posted 20 Oct 2015 Link to this post

    Hi there,

    We are trying to attach a Context Menu to RadNavigation, see sample code below. The context menu only opens for the top level items in the the RADNavigation and not the sub-items. How can we get it working with the sub-items too?

    <telerik:RadNavigation ID="RadNavigation1" runat="server" Skin="Bootstrap" MenuButtonPosition="Left" OnClientContextMenu="OnClientContextMenu"
        EnableViewState="false" OnNodeDataBound="RadNavigation1_NodeDataBound" OnClientNodeMouseEnter="OnClientNodeMouseEnter"
        OnClientNodeMouseLeave="OnClientNodeMouseLeave" DataSourceID="SiteMapDataSource1" OnDataBound="RadNavigation1_DataBound">
        <Nodes>
        </Nodes>
    </telerik:RadNavigation>
    <telerik:RadContextMenu runat="server" ID="ContextMenu2" Skin="Bootstrap" EnableViewState="false"
        OnClientItemClicked="OnClientItemClickedContextMenu">
        <Targets>
           <telerik:ContextMenuControlTarget ControlID="RadNavigation1" />
        </Targets>
        <Items>
            <telerik:RadMenuItem Text="Move ​item up" Value="MoveUp" />
            <telerik:RadMenuItem Text="Move item down" Value="MoveDown" />
        </Items>
    </telerik:RadContextMenu>

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    837 posts

    Posted 22 Oct 2015 Link to this post

    Hello Nihan,

    I answered you inquiry in the opened support ticket with the same subject. If you have more questions, in order to avoid thread duplication, I suggest we continue the discussion in the other thread.

    Regards,
    Ivan Danchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top