Drop Target Selection Color

4 posts, 0 answers
  1. Oran
    Oran avatar
    16 posts
    Member since:
    Dec 2010

    Posted 27 Dec 2010 Link to this post

    Hello,

    I am implementing a drag drop between a listview and a rad treeview. Everything is fine except that when i drag an item to the treeview, the selected hovered item on the treeview does not show.
    Is there any 'out of box' solution for this, or it should be implemented manually by detecting the hovered tree view item and changing its color? if it does require manual coding, do you have some short example for it?

    Thanks,
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 28 Dec 2010 Link to this post

    Hi Oran,

    I have prepared simple project demonstrating how to achieve the desired behavior using RadTreeViewItem.IsDragOver property.

    Please, have a look at the example and let us know if you need any further assistance.

    Kind regards,
    Tsvyatko
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. UI for WPF is Visual Studio 2017 Ready
  4. Oran
    Oran avatar
    16 posts
    Member since:
    Dec 2010

    Posted 28 Dec 2010 Link to this post

    Thanks a lot! This has completely solved my problem...

    Keep on the good work...

    Oran
  5. Oran
    Oran avatar
    16 posts
    Member since:
    Dec 2010

    Posted 28 Dec 2010 Link to this post

    Well it seems that there is still a problem :

    I tried to enable the 'EnableNativeDrag' property to allow proper right to left dragging as you state in one of your forums.

    But then the following line never gets the element out of the e.Options.CurrentDragPoint

    var destinationTreeItem = e.GetElement<RadTreeViewItem>(e.Options.CurrentDragPoint);


    Please help!!

    Thanks,
    Oran
Back to Top