I am currently using the RadDragAndDropManager for the first time and dragging from a RadTreeView to a RadPaneGroup.
Seems to do most of what I need; I'm currently doing all the work on the DropInfoHandler.
The problem I have, is that the "DropInfo" event fires IMMEDIATELY when I drag the RadTreeViewItem over the pane, rather than when I let go of the left mouse button. This is an issue because I have multiple grids, and the user will want to drag over the top of some grids to get to other grids.
Is this functionality by design, or have I done something wrong?
XAML:
Code behind
Seems to do most of what I need; I'm currently doing all the work on the DropInfoHandler.
The problem I have, is that the "DropInfo" event fires IMMEDIATELY when I drag the RadTreeViewItem over the pane, rather than when I let go of the left mouse button. This is an issue because I have multiple grids, and the user will want to drag over the top of some grids to get to other grids.
Is this functionality by design, or have I done something wrong?
XAML:
<telerik:RadDocking x:Name="Docking" Close="Docking_Close"> <telerik:RadSplitContainer InitialPosition="DockedLeft" Width="240" > <telerik:RadPaneGroup> <telerik:RadPane x:Name="rpDatabaseBrowser" Header="Database Browser"> <Grid> <telerik:RadTreeView Name="RadTreeView1" ImagesBaseDir="/Images/" LoadOnDemand="RadTreeView1_LoadOnDemand" IsDragDropEnabled="True" telerik:RadDragAndDropManager.AllowDrop="False"> </telerik:RadTreeView> </Grid> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup x:Name="rpg1" telerik:RadDragAndDropManager.AllowDrop="True"> <telerik:RadPane x:Name="rp1" Title="Pane 1"> <Grid> <telerik:RadGridView x:Name="GridView1" Visibility="Hidden" DataLoadMode="Asynchronous"> </telerik:RadGridView> </Grid> </telerik:RadPane> </telerik:RadPaneGroup> <telerik:RadPaneGroup x:Name="rpg2" telerik:RadDragAndDropManager.AllowDrop="True"> <telerik:RadPane x:Name="rp2" Title="Pane 2"> <Grid> <telerik:RadGridView x:Name="GridView2" Visibility="Hidden" DataLoadMode="Asynchronous"> </telerik:RadGridView> </Grid> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost></telerik:RadDocking>Code behind
public MainWindow(){ InitializeComponent(); RadDragAndDropManager.AddDropInfoHandler(rpg1, OnDatabaseBrowserDropInfo); RadDragAndDropManager.AddDropInfoHandler(rpg2, OnDatabaseBrowserDropInfo);}private void OnDatabaseBrowserDropInfo(object sender, DragDropEventArgs e){ //work out which RadTreeViewItem is dragged from //work out which RadPaneGroup is dropped on //populate Grid on RadPane}