Hi,
I'm working on a WPF desktop application using RadControls for WPF version 2010.1.0603.35.
I have a number of ListView and RadTreeView controls that are Drag and Drop enabled. They also have a RadContextMenu. The problem I have is when I right click on an item then immediately left click the same or another item in the control. This seems to enable drag and drop and sometimes move items around. In order to reproduce this I used the Demo solution installed with the Telerik product. I took the DragAndDrop TreeToGrid example and I added a RadContextMenu to the ListBox and the RadTreeView as shown below.
Using this example you can right-click on any item under Wishlist and then immediately left-click on a different item under the same control. The items will most likely shuffle around. In any case (on the RadTreeView also) it will enable the drag and drop event and that is not desirable functionality for me.
Your help is very much appreciated.
Thank you,
Ogi Ivanov
I'm working on a WPF desktop application using RadControls for WPF version 2010.1.0603.35.
I have a number of ListView and RadTreeView controls that are Drag and Drop enabled. They also have a RadContextMenu. The problem I have is when I right click on an item then immediately left click the same or another item in the control. This seems to enable drag and drop and sometimes move items around. In order to reproduce this I used the Demo solution installed with the Telerik product. I took the DragAndDrop TreeToGrid example and I added a RadContextMenu to the ListBox and the RadTreeView as shown below.
<nav:RadTreeView x:Name="allProductsView" |
ItemTemplateSelector="{StaticResource ExampleTemplateSelector}" |
ItemContainerStyle="{StaticResource TreeViewItemStyle}" |
IsDragDropEnabled="True" Background="White" BorderThickness="1" |
BorderBrush="LightGray" |
Padding="16"> |
<telerikNavigation:RadContextMenu.ContextMenu> |
<telerikNavigation:RadContextMenu > |
<telerikNavigation:RadMenuItem Header="RadTreeView Menu 1" /> |
<telerikNavigation:RadMenuItem Header="RadTreeView Menu 2" /> |
</telerikNavigation:RadContextMenu> |
</telerikNavigation:RadContextMenu.ContextMenu> |
</nav:RadTreeView> |
<ListBox x:Name="wishlistView" Grid.Column="2" |
telerik:StyleManager.Theme="Office_Black" SelectionMode="Extended" |
dragDrop:RadDragAndDropManager.AllowDrop="True" |
ItemTemplate="{StaticResource WishlistProduct}" |
ItemContainerStyle="{StaticResource WishlistItemStyle}" Padding="16" > |
<telerikNavigation:RadContextMenu.ContextMenu> |
<telerikNavigation:RadContextMenu > |
<telerikNavigation:RadMenuItem Header="ListBox Menu 1" /> |
<telerikNavigation:RadMenuItem Header="ListBox Menu 2" /> |
</telerikNavigation:RadContextMenu> |
</telerikNavigation:RadContextMenu.ContextMenu> |
</ListBox> |
Your help is very much appreciated.
Thank you,
Ogi Ivanov