<
UserControl x:Class="UserControls.MyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:GridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
Height="Auto" Width="Auto">
<Grid Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<TextBox Name="dropTextBox"
Text="Drop a row here to add ..."
AllowDrop="True"
Grid.Row="0"
PreviewDragEnter="OnDragOver"
PreviewDragOver="OnDragOver"/>
<RadGridView ScrollViewer.CanContentScroll="True"
ScrollMode="RealTime"
IsFilteringAllowed="True"
DataLoadMode="Asynchronous"
ColumnsWidthMode="Fill"
Width="Auto"
Height="Auto"
Name="dataGrid"
VerticalAlignment="Top"
HorizontalAlignment="Center"
ItemsSource="{Binding SearchList}"
AllowDrop="False"
Grid.Row="1">
<RadGridView.RowAppearance>
<telerik:RowAppearanceSettings>
<telerik:RowAppearanceSettings.RowStyle>
<Style TargetType="GridView:GridViewRow">
<Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" />
</Style>
</telerik:RowAppearanceSettings.RowStyle>
<telerik:RowAppearanceSettings.AlternateRowStyle>
<Style TargetType="GridView:GridViewRow">
<Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" />
</Style>
</telerik:RowAppearanceSettings.AlternateRowStyle>
</telerik:RowAppearanceSettings>
</RadGridView.RowAppearance>
</RadGridView>
</Grid>
</
UserControl>
public