Hi,
I am using RowActivated for my RadGridView and have a few issues:
- The RowActivated event is triggered on a mouse double click but NOT when Enter is pressed. According to the documentation and a lot of posts (with provided examples) it should. Since a lot a users get the event triggered successfully by Enter key down, I probably have some properties set that prevents this. If so, which properties would block the event (please see my XAML below).
- With the RowActivated event, I'd like to send a command argument that contains the string displayed in the first column. How do I achieve that (in XAML and in C# code)?
This is my XAML:
<Telerik:RadGridView
RowActivated="HandleEvent_GridRowDoubleClick"
Telerik:StyleManager.Theme="Office_Blue"
RowIndicatorVisibility="Collapsed"
SelectionMode="Single"
Width="Auto"
CanUserFreezeColumns="False"
CanUserSortColumns="True"
HorizontalAlignment="Left"
HorizontalContentAlignment="Left"
ItemsSource="{Binding DataTableUnitLoads.DefaultView, Mode=OneWay}"
VerticalAlignment="Stretch"
AutoGenerateColumns="False"
ShowGroupPanel="False"
EnableColumnVirtualization="True"
ShowColumnFooters="True"
hlp:RadGridViewCustomKeyboardCommandProvider.PreventEnter="True"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
EnableRowVirtualization="True"
CanUserReorderColumns="False">
And this is my C#:
private void HandleEvent_GridRowDoubleClick(object sender, RowEventArgs e)
{
}
Thanks in advance for your help!
I am using RowActivated for my RadGridView and have a few issues:
- The RowActivated event is triggered on a mouse double click but NOT when Enter is pressed. According to the documentation and a lot of posts (with provided examples) it should. Since a lot a users get the event triggered successfully by Enter key down, I probably have some properties set that prevents this. If so, which properties would block the event (please see my XAML below).
- With the RowActivated event, I'd like to send a command argument that contains the string displayed in the first column. How do I achieve that (in XAML and in C# code)?
This is my XAML:
<Telerik:RadGridView
RowActivated="HandleEvent_GridRowDoubleClick"
Telerik:StyleManager.Theme="Office_Blue"
RowIndicatorVisibility="Collapsed"
SelectionMode="Single"
Width="Auto"
CanUserFreezeColumns="False"
CanUserSortColumns="True"
HorizontalAlignment="Left"
HorizontalContentAlignment="Left"
ItemsSource="{Binding DataTableUnitLoads.DefaultView, Mode=OneWay}"
VerticalAlignment="Stretch"
AutoGenerateColumns="False"
ShowGroupPanel="False"
EnableColumnVirtualization="True"
ShowColumnFooters="True"
hlp:RadGridViewCustomKeyboardCommandProvider.PreventEnter="True"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
EnableRowVirtualization="True"
CanUserReorderColumns="False">
And this is my C#:
private void HandleEvent_GridRowDoubleClick(object sender, RowEventArgs e)
{
}
Thanks in advance for your help!