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

Trouble getting started with DragDrop

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Devlin
Top achievements
Rank 1
Devlin asked on 09 Aug 2011, 11:45 PM
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>
                <telerik:RadTreeViewItem Header="Tennis">
                    <telerik:RadTreeViewItem Header="Table Tennis"/>
                </telerik:RadTreeViewItem>
                <telerik:RadTreeViewItem Header="Cycling">
                    <telerik:RadTreeViewItem Header="Road Cycling"/>
                    <telerik:RadTreeViewItem Header="Indoor Cycling"/>
                    <telerik:RadTreeViewItem Header="Mountain Bike"/>
                </telerik:RadTreeViewItem>
            </telerik:RadTreeViewItem>
        </telerik:RadTreeView>

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 12 Aug 2011, 02:58 PM
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 >>

Tags
TreeView
Asked by
Devlin
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or