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

Drag/Drop - only able to expand a leafnode once

1 Answer 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 1
Ryan asked on 19 Feb 2012, 11:26 PM
Hello,

I have a TreeView that is bound to an observable collection.  I have Drag/Drop set up so I can drag a LeafNode to a Listbox.  The problem is, once I collapse the parent node of the LeafNode, I can no longer expand it again.  If I do not drag the leaf item to the Listbox I can expand/collapse the parent over and over.  As soon as I drag it to the Listbox, the parent will not expand anymore. 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 Feb 2012, 04:59 PM
Hello Ryan ,

 Could you please elaborate more on your scenario? What are event that you use for the DragAndDrop operations? Do you (and if yes, how) remove the RadTreeViewItem when successfully dragged and dropped? Is your tree data bound? Is it possible for you to share some code snippets, this way we would be better able to help you? Thank you in advance.
If we use this demo as a base for our discussion, can you confirm that you just need to copy the tree item when it is dragged and then dropped? 

Kind regards,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeView
Asked by
Ryan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or