If I am in edit mode and try to select the text with my mouse it thinks I am dragging that row. I tried to disable this with this code but it had no effect.
<Style TargetType="telerik:GridViewCell" >
<Style.Triggers>
<Trigger Property="IsInEditMode" Value="True">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="False"></Setter>
</Trigger>
</Style.Triggers>
</Style>
I then added code to OnDragInitialize in my DragDropBehavior attached behavior that returns if the current cell is in edit mode. It does stop the drag from happening but it also interferes with the user from selecting the string. It stops after the first character and changes the cursor to an arrow.
How can I disable drag/drop when in edit mode?
Thanks, Valerie
<Style TargetType="telerik:GridViewCell" >
<Style.Triggers>
<Trigger Property="IsInEditMode" Value="True">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="False"></Setter>
</Trigger>
</Style.Triggers>
</Style>
I then added code to OnDragInitialize in my DragDropBehavior attached behavior that returns if the current cell is in edit mode. It does stop the drag from happening but it also interferes with the user from selecting the string. It stops after the first character and changes the cursor to an arrow.
private void OnDragInitialize(object sender, DragInitializeEventArgs e)<
br
> {<
br
><
div
><
span
style
=
"font-size: 11px; line-height: 1.4;"
> var radGridClientObject = sender as RadGridView;</
span
><
br
></
div
> if (radGridClientObject != null)<
br
> {<
br
> if (radGridClientObject.CurrentCell.IsInEditMode)<
br
> {<
br
> return;<
br
> }<
br
> }<
br
><
div
></
div
>
Thanks, Valerie