DragNDrop from RadGridView to RadTreeView

2 posts, 0 answers
  1. Swaroop
    Swaroop avatar
    12 posts
    Member since:
    Aug 2011

    Posted 24 Aug 2011 Link to this post


    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 .


  2. Maya
    Maya avatar
    4062 posts

    Posted 24 Aug 2011 Link to this post

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

Back to Top