I am trying to drag an item from a RadTreeView onto a cell in a RadGridView. I am using the following XAML to set my row styles accordingly:
However, only the OnDragQuery and OnDropInfo events fire. What is odd is that the e.Options.Status property is set to "DragCancel" in the OnDragInfo event.
Any suggestion on how fix this and get the other events to fire?
<UserControl.Resources> | |
<Style TargetType="ctrlTelerikGridView:GridViewRow" x:Key="commonRowStyle"> | |
<Setter Property="ctrlTelerikDragDrop:RadDragAndDropManager.AllowDrop" | |
Value="True" /> | |
</Style> | |
</UserControl.Resources> | |
....
<ctrlTelerikControls:RadGridView x:Name="TargetsGrid" CanUserReorderColumns="False" ctrlTelerikDragDrop:RadDragAndDropManager.AllowDrop="True" | |
CanUserFreezeColumns="False" ShowGroupPanel="False" HorizontalAlignment="Left" | |
IsFilteringAllowed="False" AutoGenerateColumns="False" RowIndicatorVisibility="Visible" | |
ColumnsWidthMode="Fill" MultipleSelect="False" ScrollMode="RealTime" Background="White" RowStyle="{StaticResource commonRowStyle}" AlternateExpandableRowStyle="{StaticResource commonRowStyle}" > | |
<ctrlTelerikControls:RadGridView.Columns> | |
<ctrlTelerikControls:GridViewDataColumn HeaderText="Target Field" DataMemberPath="TargetFieldName"/> | |
<ctrlTelerikControls:GridViewDataColumn HeaderText="Type" DataMemberPath="FieldType"/> | |
<ctrlTelerikControls:GridViewDataColumn HeaderText="Source Field" DataMemberPath="SourceField"/> | |
</ctrlTelerikControls:RadGridView.Columns> | |
</ctrlTelerikControls:RadGridView> | |
Any suggestion on how fix this and get the other events to fire?