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

4 posts, 0 answers
  1. Metin
    Metin avatar
    15 posts
    Member since:
    May 2013

    Posted 23 Nov 2013 Link to this post

    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.
  2. Metin
    Metin avatar
    15 posts
    Member since:
    May 2013

    Posted 25 Nov 2013 Link to this post

     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.
  3. DevCraft banner
  4. Nick
    Admin
    Nick avatar
    593 posts

    Posted 27 Nov 2013 Link to this post

    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 >>
  5. Metin
    Metin avatar
    15 posts
    Member since:
    May 2013

    Posted 28 Nov 2013 Link to this post

    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.
Back to Top