This question is locked. New answers and comments are not allowed.
Hi Telerik Team,
I'm using a DropQuery handler on a my treeview:
Sometimes the e.Options.Payload contains a number of MyEntity items (as expected) and an additional item of type object which leads to an exception when calling .Cast<MyEntity>.
The whole TreeView is databound via HierarchicalDataTemplate, IsSelected and IsExpanded are also bound via ContainerBindings. I'm dragging within the tree, no other controls are involved.
I'm using Telerik 2011 Q3 on Silverlight 5.
Unfortunately I'm not always able to reproduce this behavior. Can you give any hints on this issue?
Thanks,
Gerrit
I'm using a DropQuery handler on a my treeview:
TreeViewControl.AddHandler(RadDragAndDropManager.DropQueryEvent,
new
EventHandler<DragDropQueryEventArgs>(OnDropInsideTreeViewDropQuery),
true
);
private
void
OnDropInsideTreeViewDropQuery(
object
sender, DragDropQueryEventArgs e)
{
List<MyEntity> draggedTasks = ((Collection<
object
>)e.Options.Payload).Cast<MyEntity>().ToList();
}
The whole TreeView is databound via HierarchicalDataTemplate, IsSelected and IsExpanded are also bound via ContainerBindings. I'm dragging within the tree, no other controls are involved.
I'm using Telerik 2011 Q3 on Silverlight 5.
Unfortunately I'm not always able to reproduce this behavior. Can you give any hints on this issue?
Thanks,
Gerrit