Trouble getting started with DragDrop

2 posts, 0 answers
  1. Devlin
    Devlin avatar
    7 posts
    Member since:
    Jul 2011

    Posted 09 Aug 2011 Link to this post

    The example in the documentation for Drag and Drop in RadTreeView indicates that setting IsDragDropEnabled="True" will allow elements to be dragged both into other elements and before/after said elements. However, in my experience I cannot get elements to successfully drag before/after other elements even with the very simple example code (pasted below). What am I missing?

            <telerik:RadTreeView x:Name="radTreeView" Grid.Row="2" IsDragDropEnabled="True" IsDropPreviewLineEnabled="True">
                <telerik:RadTreeViewItem Header="Sport Categories">
                    <telerik:RadTreeViewItem Header="Football">
                        <telerik:RadTreeViewItem Header="Futsal"/>
                        <telerik:RadTreeViewItem Header="Soccer"/>
                    <telerik:RadTreeViewItem Header="Tennis">
                        <telerik:RadTreeViewItem Header="Table Tennis"/>
                    <telerik:RadTreeViewItem Header="Cycling">
                        <telerik:RadTreeViewItem Header="Road Cycling"/>
                        <telerik:RadTreeViewItem Header="Indoor Cycling"/>
                        <telerik:RadTreeViewItem Header="Mountain Bike"/>

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 12 Aug 2011 Link to this post

    Hi Devlin,

    I am not sure what is causing such an issue. The code snippet you sent works as expected on our side. I tested it with the Q2 2011 release. I attached the sample to give it a try on your side. You can also see the behavior on our side in this screencast.

    If this doesn't help, please give us more details about the RadControls version you use. Also, you can send us a screencast so that we can examine the drag/drop behavior on your side. Thank you in advance.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top