Drag and Drop to Empty RadTreeView

2 posts, 0 answers
  1. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 04 Jan 2011 Link to this post

    My application has a RadDocking panel dividing the page into two panes.  On the left pane is the source RadTreeListView and on the right pane is the target RadTreeView.  Drag and drop from the treeListView to TreeView works fine.  But when the treeview on the right is empty, it is hard for the dropped item to attach to the container so it looks like nothing is going to happen until the drag cue hit a sweet spot around the border area.  I found this after I put in a border to the treeview.  If there is no border, it looks like that I won't be able to drop onto an empty treeview. 

    The ideal behavior is highlight the right pane as soon as the dragged item(s) is dragged to the treeView container and user can drop the item anywhere in the right pane.  Is this possible?  If not, is there a way to make it more drops friendly?
  2. Tsvyatko
    Tsvyatko avatar
    863 posts

    Posted 05 Jan 2011 Link to this post

    Hi jnh999,

    The issue you are describing seems like the destination treeview does not have background. In SL these element are not hittest visible to the mouse. In order to make it work one needs to set background to transparent or any other color.

    About the treeview Background highlight, I can suggest using the new event (available in our latest internal builds) DragOverTree, where you can set the background depending on the status.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top