Hello,
We want to be able to block a row change when a user is editing a row and clicks on a different row in the RadGridView.
We have noticed that the RowValidating, RowValidated and RowEndEdit events are fired before the SelectionChanging event. This sounds logical but how can we see in RowValidating that the event is fired due to selecting an different row?
Kind regards,
Bert
Hello Telerik,
I updated my WPF project in VS 2012 with the Solution Update Wizard to 2013 Q2, since I get an exception when I open a .xaml file in the in VS which contains a RadGridView.
Greetings Uwe
How to show hotkey in right part of menu item for RadMenuItem? Or how to add MenuItem to RadContextMenu? MenuItem wraps into RadMenuItem and looks ugly (I don't want to change HeaderTemplate because I think RadContextMenu should have better functionality than free analogs):
<t:RadContextMenu>
<t:RadContextMenu.Items>
<MenuItem Header="Copy" Command="Copy" />
<t:RadMenuItem Header="Copy" Command="Copy" />
</t:RadContextMenu.Items>
</t:RadContextMenu>
<UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/AM.Core;Component/UI/ResourceDictionaries/UID <ResourceDictionary Source="/AM.Core;Component/UI/ResourceDictionaries/Dat </ResourceDictionary.MergedDictionaries> <localProperties:Settings x:Key="Settings" /> <Style TargetType="telerik:GridViewRow" x:Key="DraggedRowStyle" BasedOn="{StaticResource {x:Type telerik:GridViewRow}}"> <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" /> <Setter Property="AllowDrop" Value="True" /> </Style> </ResourceDictionary></UserControl.Resources><Grid x:Name="LayoutRoot"> <telerik:RadGridView x:Name="AccountGroupsGridView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="{Binding ElementName=LayoutRoot, Path=ActualWidth}" Height="{Binding ElementName=LayoutRoot, Path=ActualHeight}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" IsSynchronizedWithCurrentItem="True" AutoGenerateColumns="False" VerticalGridLinesBrush="Transparent" AlternationCount="2" AlternateRowBackground="AliceBlue" CanUserDeleteRows="True" CanUserInsertRows="True" ColumnWidth="*" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" KeyboardNavigation.DirectionalNavigation="Cycle" KeyboardNavigation.TabNavigation="Cycle" ItemsSource="{Binding Path=AccountGroups}" RowStyle="{StaticResource DraggedRowStyle}" AllowDrop="True" amUI:RowReorderBehavior.IsEnabled="True"> <telerik:RadGridView.Resources> <DataTemplate x:Key="DraggedItemTemplate"> <StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock Text="Dragging:" /> <TextBlock Text="{Binding CurrentDraggedItem}" FontWeight="Bold" /> </StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding CurrentDropPosition}" FontWeight="Bold" MinWidth="45" /> <TextBlock Text=", (" Foreground="Gray" /> <TextBlock Text="{Binding CurrentDraggedOverItem}" /> <TextBlock Text=")" Foreground="Gray" /> </StackPanel> </StackPanel> </DataTemplate> </telerik:RadGridView.Resources>