Drag Drop external item onto RadTreeView

5 posts, 0 answers
  1. Abhilash
    Abhilash avatar
    3 posts
    Member since:
    Apr 2011

    Posted 05 Apr 2011 Link to this post

    Hi,
    [To whomsoever it may concern]
    I am using RadTreeListView in my application and need to support drag-drop of external file from filesystem onto any node of tree view.
    Once i drop file onto Node, i need to find the node and update its children by reading file contents. 

    Could you help me achieving the following:
    1. Need to find event on external item drop which will help me identify target node. Currently I am able to get the file contents on drop event of tree view but not able to figure out target node.
    2. Allowing file drag onto parents nodes and not on any of the child nodes, since child nodes are generated based on contents of file.

    Thanks in advance!

    Regards,
    Abhilash
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Apr 2011 Link to this post

    Hi,

     Have you seen this demo?

    All the best,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Abhilash
    Abhilash avatar
    3 posts
    Member since:
    Apr 2011

    Posted 11 Apr 2011 Link to this post

    Hi Vlad,
    Thanks for your resonse.
    I have seen this demo, however this does not allow you to drag drop items from file system. I need to drag specific file from file systetm onto specific node of RadTreeView. For details, please read through first post in same thread.

    Regards,
    Abhilash
  5. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 12 Apr 2011 Link to this post

    Hello Abhilash,

     You might want to look at this help article, demonstrating how to enable dragging from external program. Then you can integrate it in the TreeListView using the code from the sample posted earlier in the thread.

    Greetings,
    Tsvyatko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Abhilash
    Abhilash avatar
    3 posts
    Member since:
    Apr 2011

    Posted 13 Apr 2011 Link to this post

    Hi Tsvyatko,
    The link that you provded explains handling drag drop of external file on WPF. My application is Silverlight app.

    Also I have read through:
    http://www.telerik.com/help/silverlight/raddraganddrop-getting-started-with-drag-and-drop.html
    http://www.telerik.com/help/silverlight/raddraganddrop-getting-started-scenarios.html

    But there is no link which explains scenario of external file drag drop on RadTreeListView.
    Also I have tried regsitering events DropQueryEventand DropInfoEvent like:

     

    radTreeListView.AddHandler(RadDragAndDropManager.DropQueryEvent, new
    EventHandler<DragDropQueryEventArgs>(OnDropQuery), 
    true);<BR>            
    radTreeListView.AddHandler(RadDragAndDropManager.DropInfoEvent, new 
    EventHandler<DragDropEventArgs>(OnDropInfo), true); 

     

     

    However these events were not raised when drag and droped any item from file system.
    It would be really nice if you can redirect me to relevant link or send sample POC across.

    Regards,
    Abhilash

     

Back to Top
DevCraft banner