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

DragStarted firing twice

1 Answer 66 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 03 May 2011, 03:06 PM
I'm trying to store the values of the headers of dragged items into a generic list. It appears to be happening twice.

tvDirectoryDragStarted(object sender, RadTreeViewDragEndedEventArgs e)
{
     for(int i = 0;i<e.DraggedItems.Count;i++)
     {
            RadTreeViewItem item = (RadTreeViewItem)e.DraggedItems[i];
            _fileQueue.Items.Add(item.Header.ToString());
             
     }
 
}

_fileQueue is just a generic list I instantiate at runtime. The method is iterating through the dragged items twice though. I set a breakpoint and stepped through it, and it looks like the method is just firing twice. What could be the cause of this? I'm dragging the items into another RadTreeView, but I haven't wired any event handlers to it if that helps. 

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 06 May 2011, 04:15 PM
Hi fred williams,

I tested your scenario on our side but unfortunately I wasn't able to reproduce it. This is why I wanted to ask you to take a look at the test project I attached and let me know if I am missing something? Thank you in advance.

Greetings,
Tina Stancheva
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
Tags
TreeView
Asked by
fred williams
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or