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

RadTreeview - Disable Drag to sibling of root elements in Radwindow (DragOver not hit)

3 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Metin
Top achievements
Rank 1
Metin asked on 23 Nov 2013, 07:54 AM
Hi,

I have 2 radtreeviews in a radwindow. And IsDragDropEnabled is enabled for the treeviews.
The drag and drop operations are working great. 

I also prevent some drag operations using 

DragDropManager.AddDragOverHandler(e.PreparedItem, OnItemDragOver, true);

Now my problem:
This method is not hit when i drag an item to the buttom of treeview (out of all item's bounds) and therefore
i cannot prevent drag to the sibling of a root level element. 

I am using 2013 Q3

Also check the screenshot please.

Thanks for the help.

3 Answers, 1 is accepted

Sort by
0
Metin
Top achievements
Rank 1
answered on 25 Nov 2013, 03:17 PM
 If you attach the event of
DragDropManager.AddDragOverHandler(this.AssociatedObject, OnItemDragOver, true);

in

treeview.ItemPrepared+=AssociatedObject_ItemPrepared;

than it does not hit the OnItemDragOver as i mantioned in the previous post.

But if you attach the event earlier it hits the event while dragover last root level element's sibling.

FYI.
0
Nick
Telerik team
answered on 27 Nov 2013, 08:47 AM
Hello Metin,

Basically if you subscribe to the Drag events with handledEventsToo, you should receive the events even though they are handled in the internal logic of the TreeView. 
Perhaps you can open a support ticket and attach a sample which we can debug in order to see what exactly goes wrong? 

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Metin
Top achievements
Rank 1
answered on 28 Nov 2013, 11:08 AM
For now i have no time to create a project for this. I attached to this event and dragcompleted
in the constructor of my attached dependency property. I have seen that in your demo, but in the demo
you attach the event in the item_prepared event which has not worked for me.

Since my problem solved by changing the level of binding to the event, i am fine.

Thanks for your help.
Tags
General Discussions
Asked by
Metin
Top achievements
Rank 1
Answers by
Metin
Top achievements
Rank 1
Nick
Telerik team
Share this question
or