DoubleClick, Scroll and Drag&Drop

7 posts, 0 answers
  1. GuillaumeR
    GuillaumeR avatar
    11 posts
    Member since:
    Jan 2008

    Posted 02 Jul 2010 Link to this post

    Hello,

    I have a long RadTreeView with scrolls. This tree enables Drag&Drop (IsDragDropEnabled="True").
    After a double click on an item in the tree, a mouse down on tree' scroll starts the drag operation.

    Is it a bug ? How can I prevent it ?

    Edit :
    It is not only after a double click. This seems to occur when the event handler open a modal dialog.
    Example with selection changed :
            private void RadTreeView_SelectionChanged(object sender, SelectionChangedEventArgs e)  
            {  
                MessageBox.Show("Tree - SelectionChanged");  
            }  
     
    If you select an item, then without any click on tree, you click on a tree' scroll, the drag operation starts.


    I use Q1 2010 version. (2010.1.603.35)

    Thanks,
    Guillaume R.
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 07 Jul 2010 Link to this post

    Hi Guillaume,

    We are not aware of such an issue with RadTreeView. I am attaching my test project. Could you please take a look at it and let me know if I am missing something. I'd be glad to further assist you.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Best wishes,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. GuillaumeR
    GuillaumeR avatar
    11 posts
    Member since:
    Jan 2008

    Posted 12 Jul 2010 Link to this post

    Hello,

    Just add event handler that open a modal window.

    For example on MouseDoubleClick :

    private void RadTreeView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    {
        MessageBox.Show("DoubleClick");
    }

    Double click on an item, close the window and then, try to scroll down...

    Thanks,

    Guillaume R.
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 15 Jul 2010 Link to this post

    Hi Guillaume,

    You have to cancel the drag before opening the MessageBox:

    private void RadTreeView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    {
        RadDragAndDropManager.CancelDrag();
        MessageBox.Show("DoubleClick");
    }

    Let me know if it helps.

    Sincerely yours,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 09 Jan 2011 Link to this post

    I have the same issue with scrolling a listbox with with drag and drop enabled.  When I attempt to drag the slider now it initiates a drag and I'm not sure how to stop it is there are no scroll events getting captured.

  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Jan 2011 Link to this post

    Hello GuillaumeR,

    I am unable to reproduce your issue in my environment. We would highly appreciate if you can send us a runnable sample that reproduces this issue. This way we would investigate your issue in depth and provide you with a better suited solution. Thank you in advance for your cooperation.

    All the best,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  8. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 12 Jan 2011 Link to this post

    I have created new bug report # 383558 with my project attached showing this issue.

    Thanks,
    Brent Snyder
Back to Top
UI for WPF is Visual Studio 2017 Ready