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

DoubleClick, Scroll and Drag&Drop

6 Answers 107 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
GuillaumeR
Top achievements
Rank 1
GuillaumeR asked on 02 Jul 2010, 03:48 PM
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.

6 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 07 Jul 2010, 02:28 PM
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
0
GuillaumeR
Top achievements
Rank 1
answered on 12 Jul 2010, 10:45 AM
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.
0
Kiril Stanoev
Telerik team
answered on 15 Jul 2010, 08:49 AM
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
0
Brent
Top achievements
Rank 2
answered on 10 Jan 2011, 03:23 AM
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.

0
Petar Mladenov
Telerik team
answered on 12 Jan 2011, 10:25 AM
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>>
0
Brent
Top achievements
Rank 2
answered on 12 Jan 2011, 06:17 PM
I have created new bug report # 383558 with my project attached showing this issue.

Thanks,
Brent Snyder
Tags
TreeView
Asked by
GuillaumeR
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
GuillaumeR
Top achievements
Rank 1
Brent
Top achievements
Rank 2
Petar Mladenov
Telerik team
Share this question
or