Hello,
I'm working with drag and drop inside a RadTreeView control... My data objects are pretty simple:
class TreeNode
{
int ID,
string Header,
ObservableCollection<TreeNode> Children,
TreeNode Parent,
}
Drag and Drop seems to work well out of the box and updates my children collection appropriately as i move items around... my question is... what is the best way to update the "Parent" property of a TreeNode after I have moved it. Is there a way to build my dataobject so this is done automatically? or do i have to manually do it in one of the drag completed events?
I'm working with drag and drop inside a RadTreeView control... My data objects are pretty simple:
class TreeNode
{
int ID,
string Header,
ObservableCollection<TreeNode> Children,
TreeNode Parent,
}
Drag and Drop seems to work well out of the box and updates my children collection appropriately as i move items around... my question is... what is the best way to update the "Parent" property of a TreeNode after I have moved it. Is there a way to build my dataobject so this is done automatically? or do i have to manually do it in one of the drag completed events?