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

RadDocking and RadDragAndDrop?

3 Answers 54 Views
Docking
This is a migrated thread and some comments may be shown as answers.
C Bates
Top achievements
Rank 1
C Bates asked on 16 Dec 2009, 03:15 PM
Q3 version of controls for Silverlight.
What do I need to do to get these two packages to work together?
We initially built our app with the RadTabControl.  Removing that and using the RadDocking, instead, has caused dragging to stop working with the objects we want to make draggable.
is there something we have to do with w/r/t to the docking components to enable dragging?
We are using the docking control something like this:

<Grid x:Name="LayoutRoot">
   
<Grid.RowDefinitions>
       
<RowDefinition Height="0.088*"/>
       
<RowDefinition Height="0.912*"/>
   
</Grid.RowDefinitions>
   
<ButtonHorizontalAlignment="Left" Click="Button_Click" Margin="47,8,0,8" Width="69" Content="Button"/>
   
<telerikDocking:RadDocking Grid.Row="1"HorizontalAlignment="Stretch"d:LayoutOverrides="Height">
       
<telerikDocking:RadDocking.DocumentHost>
           
<telerikDocking:RadSplitContainer x:Name="split1">
               
<telerikDocking:RadPaneGroup x:Name="group1">
                   
<telerikDocking:RadPane x:Name="pane1" Header="pane1"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                           
<Canvas>
                               
<StackPanel x:Name="stack1"Orientation="Vertical">
                               
</StackPanel>
                           
</Canvas>
                       
</telerikDocking:RadPane>
               
</telerikDocking:RadPaneGroup>
           
</telerikDocking:RadSplitContainer>
       
</telerikDocking:RadDocking.DocumentHost>
   
</telerikDocking:RadDocking>
 
</Grid>


We add content to the StackPanel in the RadPane, and hook up the object for dragging:
            RadDragAndDropManager.SetAllowDrag(BlobTop, true);
BlobTop is a rectangle, a part of a user control.

When we click on the BlobTop part, though, we don't get any dragging behavior; OnDragQuery() (hooked up on page.xaml.cs) is not called.

Thanks for any insights...

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 18 Dec 2009, 01:53 PM
Hello C Bates,

 Please, refer to the attached example that demonstrates how Drag&Drop and Docking control are working together. There is one limitation that we are going to target - the AllowDragOverTab is not working yet.

If this doesn't help, please describe in more details what you need to do and what is going wrong. If you could send us a sample project that demonstrates the problem it would be of great help.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
C Bates
Top achievements
Rank 1
answered on 18 Dec 2009, 07:57 PM
Thanks for following up.  I created a support ticket --  268073 -- and attached a couple of simple projects in a reply to the initial report.  The two samples demonstrate a key difference in behavior between the RadTab control and the RadDocking control.

0
Miroslav Nedyalkov
Telerik team
answered on 21 Dec 2009, 10:11 AM
Hello C Bates,

 I answered the support thread.

Greetings,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
C Bates
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
C Bates
Top achievements
Rank 1
Share this question
or