Drag and Drop from RadTreeView to RadDataGrid cell(s)

4 posts, 0 answers
  1. Dustin
    Dustin avatar
    4 posts
    Member since:
    Jan 2018

    Posted 24 Jan 2018 Link to this post


    I am new to both XAML and Telerik. I am trying to implement some functionality to an existing application that will allow me to drag and drop a tree node item to a data grid. I have been looking at the example here (https://github.com/telerik/xaml-sdk/tree/master/TreeView/DragDropTreeViewToControls) and it seems very similar to what I need except a data grid instead of a list box. It should behave in the following way:

    1) Allow drag and drop of tree node items ONLY to the left column cell(s) of an adjacent data grid (the other column will be prepopulated with data)

    2) DISABLE drap and drop (and reorder, etc) within the RadTreeView itself.


    If possible, please attach an example solution in a zip file.

    Thank you in advance.

  2. Dustin
    Dustin avatar
    4 posts
    Member since:
    Jan 2018

    Posted 24 Jan 2018 Link to this post

    I also found the demo depicting this behavior but I'd like to download a copy of the full solution so I can manipulate/test it locally.
  3. Dinko
    Dinko avatar
    982 posts

    Posted 29 Jan 2018 Link to this post

    Hi Dustin,

    There is Silverlight online example demo (the code is shared with WPF) which demonstrates how you can drag-drop from RadTreeView to other controls ( like RadGridView). For your convenience, I have isolated the demo in a standalone project. You can additionally modify the approach so it fits in your main application.

    Keep in mind that in the attached project I am referencing NoXAML binaries with a Windows8 theme.

    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  4. Bardon
    Bardon avatar
    1 posts
    Member since:
    Feb 2018

    Posted 14 Feb 2018 Link to this post

    Samsung Galaxy Tab S3 is the tablet that will help you achieve the goal https://www.findpare.com/tablet/samsung-galaxy-tab-s3-4g
Back to Top