TreeView Unwanted Drag&Drop Bug

2 posts, 0 answers
  1. Dan
    Dan avatar
    5 posts
    Member since:
    Jun 2009

    Posted 30 Mar 2010 Link to this post

    If I catch SelectionChanged or PreviewSelectionChanged on the TreeView and in those methods, open a ChildWindow, when the ChildWindow is closed I find myself in the middle of a very much unwanted Drag and Drop. 

    As a work around I've been checking to see if the Left mouse button is down in the PreviewDragStarted, but there seem to be some edge cases where that is not working  (haven't look too much into why not)

    I've uploaded a sample:

    Is there a better work around or fix?
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 Apr 2010 Link to this post

    Hi Dan,

    You can solve this scenario - this way:
    private void RadTreeView_PreviewSelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
        TestChildWindow window = new TestChildWindow();
        window.Closed += new EventHandler(window_Closed);
    void window_Closed(object sender, EventArgs e)

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