This is a migrated thread and some comments may be shown as answers.

Drag and Drop to Empty RadTreeView

1 Answer 69 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
jnh999
Top achievements
Rank 1
jnh999 asked on 04 Jan 2011, 08:57 PM
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?

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 05 Jan 2011, 12:37 PM
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.

Regards,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
DragAndDrop
Asked by
jnh999
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or