This question is locked. New answers and comments are not allowed.
Hi,
I've written a custom control containing a RadTreeView to encapsulate the logic to handle drag&drop because I need this in multiple places in my application. This control used the RadDragAndDropManager. My current task is to migrate to DragDropManager and started this by disable the old drag&drop handlers and set the drag drop execution mode:
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
if (_treeView != null)
{
...
}
_treeView = GetTemplateChild(TreeViewName) as RadTreeView;
if (_treeView != null)
{
TreeViewSettings.SetDragDropExecutionMode(_treeView, TreeViewDragDropExecutionMode.New);
...
}
}
So far so good. This compiles without errors but soon I start to drag I get the following error from the browser:
Line: 57
Error: Unhandled Error in Silverlight Application
Code: 2512
Category: ParserError
Message: Failed to create a 'System.Windows.Media.Brush' from the text 'Null}'.
File:
Line: 6534
Position: 48
I have no cue that could be the cause of the problem. The VS debugger does NOT stop or throws any exception. If I use the old drag&drop execution mode I have no problems. I use 2013.3.1104.1050 of the Telerik assemblies.
Must I handle all drag&drop events to make this work or is this a problem in the Telerik controls?
Thanks for the support!
I've written a custom control containing a RadTreeView to encapsulate the logic to handle drag&drop because I need this in multiple places in my application. This control used the RadDragAndDropManager. My current task is to migrate to DragDropManager and started this by disable the old drag&drop handlers and set the drag drop execution mode:
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
if (_treeView != null)
{
...
}
_treeView = GetTemplateChild(TreeViewName) as RadTreeView;
if (_treeView != null)
{
TreeViewSettings.SetDragDropExecutionMode(_treeView, TreeViewDragDropExecutionMode.New);
...
}
}
So far so good. This compiles without errors but soon I start to drag I get the following error from the browser:
Line: 57
Error: Unhandled Error in Silverlight Application
Code: 2512
Category: ParserError
Message: Failed to create a 'System.Windows.Media.Brush' from the text 'Null}'.
File:
Line: 6534
Position: 48
I have no cue that could be the cause of the problem. The VS debugger does NOT stop or throws any exception. If I use the old drag&drop execution mode I have no problems. I use 2013.3.1104.1050 of the Telerik assemblies.
Must I handle all drag&drop events to make this work or is this a problem in the Telerik controls?
Thanks for the support!