Drag over visual effect

2 posts, 1 answers
  1. Goran
    Goran avatar
    77 posts
    Member since:
    Feb 2011

    Posted 20 May 2012 Link to this post

    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
  2. Answer
    Nick
    Admin
    Nick avatar
    593 posts

    Posted 24 May 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top