Hi,
I have a RadGridView and need to provide a keyboard short cut to allow the user to change the sort order using the keyboard.
How would you suggest, for example, the best method to set a keyboard shortcut of alt+N to change the sort for the Name column, i.e. mimic clicking on the column header.
Here is a small sample:
I have a RadGridView and need to provide a keyboard short cut to allow the user to change the sort order using the keyboard.
How would you suggest, for example, the best method to set a keyboard shortcut of alt+N to change the sort for the Name column, i.e. mimic clicking on the column header.
Here is a small sample:
<telerik:RadGridView x:Name="mygridView" ItemsSource="{Binding MyItemsView}" SelectedItem="{Binding MySelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsSynchronizedWithCurrentItem="True" SelectionMode="Single" SelectionUnit="FullRow" AutoGenerateColumns="False" IsReadOnly="True" IsFilteringAllowed="False" ShowGroupFooters="False" ShowGroupPanel="False" EnableRowVirtualization="True"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Number" DataMemberBinding="{Binding Number}" IsSortable="True" Width="Auto" IsGroupable="False" /> <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsSortable="True" Width="*" IsGroupable="False" /> </telerik:RadGridView.Columns> <telerik:RadGridView.SortDescriptors> <telerik:SortDescriptor Member="Name" SortDirection="Ascending" /> </telerik:RadGridView.SortDescriptors> </telerik:RadGridView>
Thanks,
Andy