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

Drag over visual effect

1 Answer 261 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Goran
Top achievements
Rank 1
Goran asked on 20 May 2012, 11:00 PM
I am doing drag & drop between two RadTreeListVIew, but I guess this question should not be limited only for this control. From what I have seen, most (if not all) list controls show a mouse over effect (border element) when we move mouse over a row. During the Drag&Drop operation, normal user experience would be to visually show user where an item will be dropped. It seems that for some reason, in case of drag&dop, mouse over border around the row is not applied. Why is this the case, was this necessary by design, and how can we show user the same visual experience during drag&drop, just like with mouse over.

Regards,
Goran

1 Answer, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 24 May 2012, 08:44 AM
Hi Goran,

The Drop indication was something implemented in the older internal Drag Drop Behaviors in the TreeList, TreeView, and some other controls. 

From what I have seen, most (if not all) list controls show a mouse over effect (border element) when we move mouse over a row. 

Do you mean the line that is shown between the rows of a certain control? This unfortunately is an internal element of each control that cannot be easily manipulated from the outside. 

Now if you just want to highlight the drop target, you can easily use the DragEnter and DragLeave to change the visual states of the target. For instance, you can easily set the state to "MouseOver" on enter, and then to "Normal" on leave. 

Hope this helps! 

Greetings,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DragAndDrop
Asked by
Goran
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or