Hi,
Our client has reported an error produced on filter when item has any underscore. We are using Telerik 2012.2.607.40
If user clicks on checkboxes it filters items as expected but if user clicks on text it raises the following exception:
It is easy to reproduce with this code.
MainWindow.xaml
MainWindow.xaml.cs
Our client has reported an error produced on filter when item has any underscore. We are using Telerik 2012.2.607.40
If user clicks on checkboxes it filters items as expected but if user clicks on text it raises the following exception:
System.ArgumentNullException was unhandled Message=Value cannot be null.Parameter name: element Source=Telerik.Windows.Controls ParamName=element StackTrace: at Telerik.Windows.Controls.ParentOfTypeExtensions.<GetParents>d__0.MoveNext() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Extensions\ParentOfTypeExtensions.cs:line 74 at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at Telerik.Windows.Controls.GridView.FilteringDropDown.ShouldCloseOnMouseButton(UIElement eventOriginalSource) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Filtering\FilteringDropDown.cs:line 386 at Telerik.Windows.Controls.GridView.FilteringDropDown.Telerik.Windows.Controls.IPopupWrapperOwner.ShouldCloseOnMouseButtonDown(UIElement eventOriginalSource) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Filtering\FilteringDropDown.cs:line 376 at Telerik.Windows.Controls.AutoClosePopupWrapper.OnPreviewMouseButtonDown(Object sender, MouseButtonEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Popup\AutoCloseWrapper\AutoClosePopupWrapper.cs:line 207 at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
... It is easy to reproduce with this code.
MainWindow.xaml
<Window x:Class="TestUnderscore.MainWindow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" Title="MainWindow" Height="350" Width="525"> <Grid> <Controls:RadGridView x:Name="RadGridView"/> </Grid></Window>MainWindow.xaml.cs
namespace TestUnderscore{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); var items = new ObservableCollection<string>(); for (int i = 0; i < 50; i++ ) { items.Add("Item_" + i); } this.RadGridView.ItemsSource = items; } }}