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

Drag/Drop constraints failing

1 Answer 111 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 18 Nov 2008, 12:37 AM
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)

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 25 Nov 2008, 04:34 PM
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.
Tags
TreeView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or