Hello. I have a problem with row double click. I use next code:
And some times InputHitTest return null. I can see that it happens when I scroll (Horizontal) to the right to the columns which aren't located in visible area. But if I resize gridView and some new columns will be located in visible area, InputHitTest will return right value. (My visual tree = RadDocumentPane -> ScrollViewer -> Canvas -> ContentControl -> RadGridView) Thanks.
protected
override
void
OnMouseDoubleClick(MouseButtonEventArgs e)
{
var element = InputHitTest(e.GetPosition(GetRowForItem(SelectedItem)));
if
(element !=
null
)
{
if
(DoubleClickCommand !=
null
&& DoubleClickCommand.CanExecute(DoubleClickCommandParameter))
DoubleClickCommand.Execute(DoubleClickCommandParameter);
}
base
.OnMouseDoubleClick(e);
}
And some times InputHitTest return null. I can see that it happens when I scroll (Horizontal) to the right to the columns which aren't located in visible area. But if I resize gridView and some new columns will be located in visible area, InputHitTest will return right value. (My visual tree = RadDocumentPane -> ScrollViewer -> Canvas -> ContentControl -> RadGridView) Thanks.