RadDocking and RadDragAndDrop?

4 posts, 0 answers
  1. C Bates
    C Bates avatar
    33 posts
    Member since:
    Oct 2009

    Posted 16 Dec 2009 Link to this post

    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...

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 18 Dec 2009 Link to this post

    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.
  3. C Bates
    C Bates avatar
    33 posts
    Member since:
    Oct 2009

    Posted 18 Dec 2009 Link to this post

    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.

  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Dec 2009 Link to this post

    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.
Back to Top