Hi,
I have following markup for my RadGridView:
Now, when I hit "Enter" key the DisplayViewCommand is invoked in my ViewModel as expected.
But the DoubleClick doesn't work for some reason. (BTW: if I am double click on the Grid Header (the empty cell in top right corner) the command is triggered but of course I expect that current row double click should work also)
What I am doing wrong?
I have following markup for my RadGridView:
<telerik:RadGridView ItemsSource="{Binding PagedSource, ElementName=radDataPager}" SelectedItem="{Binding Path=SelectedAccount, Mode=TwoWay}" IsBusy="{Binding IsSearchActive}" IsReadOnly="True" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding AccountNumber}" Header="Account #" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding FullName}" Header="Name" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Email}" Header="Email" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding OrganizationName}" Header="Organization" /> </telerik:RadGridView.Columns> <telerik:RadGridView.InputBindings> <MouseBinding Gesture="LeftDoubleClick" Command="{Binding DisplayViewCommand}" /> <KeyBinding Key="Enter" Command="{Binding DisplayViewCommand}" /> </telerik:RadGridView.InputBindings> <telerik:RadGridView.RowStyle> <Style> </Style> </telerik:RadGridView.RowStyle></telerik:RadGridView>Now, when I hit "Enter" key the DisplayViewCommand is invoked in my ViewModel as expected.
But the DoubleClick doesn't work for some reason. (BTW: if I am double click on the Grid Header (the empty cell in top right corner) the command is triggered but of course I expect that current row double click should work also)
What I am doing wrong?
