Greetings,
I would like to ask you for help. I am using RadTreeView with IsDragDropEnabled=True. But now I realised that I need to drag & drop data from RadGridView to RadTreeView but this data should not be added to the tree. On the drop they should be only added to the some initernal collection of mine.
I am able to start Drag operation from RadGridView with some visual effect. Problem is that Drop handler is never called if I drop on the RadTreeView. It is only called if I register that handler with true like this:
DragDropManager.AddDropHandler(radTreeView1, OnDrop, true);
RadTreeView has set IsDragDropEnabled=true and each RadTreeViewItem has drag and drop allowed like this:
<Setter Property="AllowDrop" Value="true" />
<Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
In you examples I have seen that it should not be a problem to add handler for drop without "true" flag like this:
DragDropManager.AddDropHandler(radTreeView1, OnDrop);
but it does not work for me.
I really do not know what control is handeling drop operation.
Is there something else what I should do so I can call AddDropHandler without setting last parameter "true"?
Thanks for your advise.
Dusan Hudecek
I would like to ask you for help. I am using RadTreeView with IsDragDropEnabled=True. But now I realised that I need to drag & drop data from RadGridView to RadTreeView but this data should not be added to the tree. On the drop they should be only added to the some initernal collection of mine.
I am able to start Drag operation from RadGridView with some visual effect. Problem is that Drop handler is never called if I drop on the RadTreeView. It is only called if I register that handler with true like this:
DragDropManager.AddDropHandler(radTreeView1, OnDrop, true);
RadTreeView has set IsDragDropEnabled=true and each RadTreeViewItem has drag and drop allowed like this:
<Setter Property="AllowDrop" Value="true" />
<Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
In you examples I have seen that it should not be a problem to add handler for drop without "true" flag like this:
DragDropManager.AddDropHandler(radTreeView1, OnDrop);
but it does not work for me.
I really do not know what control is handeling drop operation.
Is there something else what I should do so I can call AddDropHandler without setting last parameter "true"?
Thanks for your advise.
Dusan Hudecek