Radwindow with a context menu

2 posts, 0 answers
  1. Saira
    Saira avatar
    24 posts
    Member since:
    Feb 2013

    Posted 24 May 2013 Link to this post

    Hi,

    Does radwindow have a context menu? I want to display a context menu for my radwindow?

    Thanks,
    Saira
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 May 2013 Link to this post

    Hi Saira,

    There is no built-in context menu for Radwindow. So you can try with the RadContextMenu. Please have a look at the following code I tried to have a context menu inside RadWindow.

    ASPX:
    <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" Width="500px"
        Height="500px">
        <ContentTemplate>
            <div id="div1" style="width: 100%; height: 100%;">
                Your Content Goes Here
            </div>
        </ContentTemplate>
    </telerik:RadWindow>
    <telerik:RadContextMenu runat="server" ID="RadContextMenu">
        <Targets>
            <telerik:ContextMenuElementTarget ElementID="div1" />
        </Targets>
        <Items>
            <telerik:RadMenuItem Text="Item 1" />
            <telerik:RadMenuItem Text="Item 2" />
            <telerik:RadMenuItem Text="Item 3" />
            <telerik:RadMenuItem Text="Item 4" />
        </Items>
    </telerik:RadContextMenu>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top