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

DragNDrop from RadGridView to RadTreeView

1 Answer 28 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Swaroop
Top achievements
Rank 1
Swaroop asked on 24 Aug 2011, 01:29 PM
HI,

I'm new to WPF and the Telerik Controls, Can anybody  help me with very simple sample to do the drag and Drop to RadTreeView.
I only need the OnDragQuery() code.

        If Me.RadGridView2 IsNot Nothing Then
            Dim selectedItems As IList = Me.RadGridView2.SelectedItem
            e.QueryResult = selectedItems.Count > 0
            e.Options.Payload = selectedItems
        End If

        e.QueryResult = True
        e.Handled = True
 I used the above code to do so, but i'm not getting the actual data to tree view rather the name of the class of which the content of Gridview is made.

I need a small example with static data .

regards,

Swaroop

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 24 Aug 2011, 04:19 PM
Hi Swaroop,

You may find examples for similar scenario both in our online documentation and demos. Do you have any difficulties implementing them on your side ? 


Best wishes,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
DragAndDrop
Asked by
Swaroop
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or