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

Contextmenu not positioning itselft correctly

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Asti
Top achievements
Rank 1
Asti asked on 30 Sep 2011, 02:48 PM
Hello,

I have created a treeview with a contextmenu, the problem I am experiencing is that the contextmenu isn't positioning itself correctly.

The reason for this is that the treeview is very long and is inside a div which has set overflow to auto, so the page itselft doesn't have scrollbars, instead the div has them.
This is causing the problem.

I've tried listening to showing/shown events on the contextmenu and I have tried manipulating the position with limited success. I've also tried to do a set_cancel on showing and then running a showAt(,,) on the desired position but that only worked halfway because the event bubbled up and the browser context menu also displayed.

Hope somebody can help me with this.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 05 Oct 2011, 10:53 AM
Hello Asti,

I have tested the issue with the yellow code below added and could not observe any unusual bahaviour:
<telerik:RadTreeViewContextMenu ID="SearchMenu" runat="server" Flow="Horizontal">
          <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
          <Items>

Hope this helps.

Regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeView
Asked by
Asti
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or