This is a migrated thread and some comments may be shown as answers.

Rad Context Menu detach problem

1 Answer 70 Views
Menu
This is a migrated thread and some comments may be shown as answers.
A2H
Top achievements
Rank 1
A2H asked on 02 Apr 2014, 04:34 AM
Hi,
I have used Telerik Rad Context menu on to a image button and on right click of it I am displaying the context menu.
Till here everything works fine. (Refer Image: RadContextmenu.jpg)

I have the image button and RadContextmenu inside a div and its has scrolling enabled.
Now the problem is RadContext Menu detaching from the image button and open in different places when you scroll inside the div.(Refer the image Context Menu Detached.jpg)

Please suggest me a solution for this.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Apr 2014, 07:21 AM
Hi,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

ASPX:
<div id="Div1">
    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Icon-small.jpg" />
    <telerik:RadContextMenu ID="RadContextmenu1" runat="server">
        <Items>
            <telerik:RadMenuItem Text="Save">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="Save As">
            </telerik:RadMenuItem>
        </Items>
        <Targets>
            <telerik:ContextMenuControlTarget ControlID="ImageButton1" />
        </Targets>
    </telerik:RadContextMenu>
    <br />
    <br />
</div>

CSS:
<style type="text/css">
    #Div1
    {
        width: 100px;
        height: 70px;
        overflow: scroll;
    }
</style>

Please provide your code if it doesn't help.
Thanks,
Shinu.
Tags
Menu
Asked by
A2H
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or