Drag/Drop constraints failing

2 posts, 0 answers
  1. Brandon
    Brandon avatar
    2 posts
    Member since:
    Nov 2008

    Posted 17 Nov 2008 Link to this post

    I am using the wpf treegrid and want to be able to drag only certain items into only certain drop targets within the tree.

    I noticed all of the querycontinue and other Wpf drag drop events do not fire at all so the only option I have to choose if a target is valid or not is what the documentation references: the IsDropAllowed property on the RadTreeItem itself.

    the problem with this is all it does is suppress the preview from actually moving the item in the tree. I need to be able to change the drag icon to some sort of indicator saying the target is invalid. Just like WPF allows with its DragEventArgs.Effects = DragDropEffects.None

    any help is very much appreciated. It seems rediculous to recurse through the entire tree on every DragStarted eventHandler and set the isDropAllowed to true or false for each node. But even if that is the only acceptable method for some strange reason, it should at least work and change the cursor to an (X)
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 25 Nov 2008 Link to this post

    Hi Brandon,

    I hope you received the hotfix for the drag/drop issue we have.

    About this inquiry - we can't control the cursor right now. We are actually providing much better (IMHO) feedback - Vista like - to the users with the drag preview. Did you notice that the icon is actually changing? You can use the treeview template to modify the drag preview that is displayed.


    Best wishes,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top