Hi,
I am using RadGridView in a desktop WPF application. The ItemsSource property of the grid is set to an instance of QueryableCollectionView. What I need is to hook to an event that is raised whenever the user tries to select a different row in the grid and then be able to cancel the change, depending on some user input. I tried using the CurrentChanging event of the QueryableCollectionView and set “e.Cancel = true”. As this approach works just fine with a normal WPF ListView, RadGridView doesn’t pick up the result from the CurrentChanging event of the QueryableCollectionView and the selection of the RadGridView is still moved to the new row (although the CollectionView’s current item does not change!). Can you give me a solution? Thank you!
ElementExported event.
<telerik:RadDocking x:Name="radDocking" Grid.Row="1"> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup x:Name="radPaneGroup2"> <telerik:RadPane x:Name="radPaneTools" Header="Options"> <StackPanel> <telerik:RadButton x:Name="btnCustomers" Content="Customers" Click="btnCustomers_Click" /> </StackPanel> </telerik:RadPane> </telerik:RadPaneGroup> <telerik:RadPaneGroup x:Name="radPaneDocuments" SelectionChanged="radPaneDocuments_SelectionChanged"> <telerik:RadPane x:Name="radPane1" Header="Document 1"> <TextBlock TextWrapping="Wrap" Text=""></TextBlock> </telerik:RadPane> <telerik:RadPane x:Name="radPane2" Header="Document 2"> <TextBlock TextWrapping="Wrap" Text=""></TextBlock> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> </telerik:RadDocking><Style TargetType="{x:Type telerik:FilteringControl}> <Setter Property="telerik:StyleManager.Theme" Value="Office_BlackTheme"/> <Style>