Drag & Drop issue

6 posts, 0 answers
  1. Xingchen
    Xingchen avatar
    5 posts
    Member since:
    Jan 2011

    Posted 13 Jun 2011 Link to this post

    E.g: 5 child nodes under a parent node. When try to reorder the child nodes, move 2nd node right above or right below 4th node, both of the actions, target node might be the 4th node based on users mouse behavior. How can we identity user wants to move the 2nd node above or below 4th node? 
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 15 Jun 2011 Link to this post

    Hi Xingchen,

    Presently, it is not possible to understand where you will drop the node. We know about this limitation and we will improve the drag and drop behavior in the next version Q2 2011. There it will be possible to understand where you will drop the node by accessing the DropPosition property in the DragOverNode event.

    Regards,
    Svett
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Xingchen
    Xingchen avatar
    5 posts
    Member since:
    Jan 2011

    Posted 15 Jun 2011 Link to this post

    Hello Svett,

    Thanks for your response.

    When the next version Q2 2011 will be released?

    Thanks,
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 20 Jun 2011 Link to this post

    Hi Xingchen,

    The next major release will be in the middle of July 2011.

    Best wishes,
    Svett
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  6. Dean Marriott
    Dean Marriott avatar
    17 posts
    Member since:
    May 2007

    Posted 22 Aug 2011 Link to this post

    Hi there,

    I've tried  DragOverNode event but I cannot find DropPosition property.
    I am using Telerik Winform 2011 Q1.
    By the way, is there any other ways to find out that I drop a node over target node or just next to it?

    Thanks
  7. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 25 Aug 2011 Link to this post

    Hi Dean,

    Thank you for writing.

    The DropPosition property can be found in the event arguments of the DragOverNode event handler:
    void radTreeView2_DragOverNode(object sender, RadTreeViewDragCancelEventArgs e)
     {
        if (e.DropPosition == DropPosition.AfterNode)
        {
            //do smth
        }
     }

    Currently, this is the only way to determine where a node is going to be dropped. 

    I hope that you find this information helpful.
     
    Greetings,
    Stefan
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready