How to implement drag and drop from RadGridView to RadTreeView

4 posts, 0 answers
  1. Vishal
    Vishal avatar
    2 posts
    Member since:
    Aug 2014

    Posted 01 Sep 2014 Link to this post

    Hello,

    I want to implement drag n drop functionality from RadGridView to RadTreeView. I dont want to use ViewModel.

    in the RadGridView i have some data pulled from Database , i.e a list of songs with their tags as columns.

    In the treeview i have made some categories of songs. I want to drag a song / or multiple songs from RadGridView and drop it on a category node of treeview. internally i will get a list of all selected rows of grid which or dragged on the Drop Event of treeview and update it to my collection and later in DB. I looked in your demos but all are using MVVM. I want a pure C# code , which would implement my task ASAP.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 01 Sep 2014 Link to this post

    Hi Vishal,

    I would suggest that you take a look at the DragAndDrop Tree to Grid Drag example in our WPF Demos - it demonstrates how you could implement the drag and drop functionality between RadGridView and RadTreeView.

    Hope this will be helpful.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vishal
    Vishal avatar
    2 posts
    Member since:
    Aug 2014

    Posted 01 Sep 2014 in reply to Yana Link to this post

    I am sorry but all the samples use MVVM. i am not an MVVM expert. neither i am using MVVM in my project. I just want clean WPF /C# code for drag n drop without using View Models.

    Please help me make this functionality as it is a critical part , and if i get to implement this, only then i will purchase you UI Suite.
    Can you please post a demo in which we can have a a treeview with some categories and a datagrid with some data and we can drag row from DataGrid to treeview.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Sep 2014 Link to this post

    Hi Vishal,

    I've created a simpler example which demonstrates how to implement the drag and drop from RadGridView to RadTreeView using the DragDropManager events, please download the attachment and give it a try.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top