Hi all,
I'm using a XamGrid bounded on an observable collection. This source is regulary updated in my viewmodel (entity are updated)
Several filters/sort are applied on this grid. We are facing randomly exceptions which cause application crash .
-> Source: InfragisticsWPF4.Controls.Grids.XamGrid.v12.2-> Exception: System.NullReferenceException-> Message: Object reference not set to an instance of an object.at Infragistics.Controls.Grids.Primitives.FilterRow.CellEditorValueChanged(CellBase cellBase, Object newValue)at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)at System.Windows.Controls.Primitives.TextBoxBase.OnTextContainerChanged(Object sender, TextContainerChangedEventArgs e)at System.Windows.Controls.TextBox.OnTextContainerChanged(Object sender, TextContainerChangedEventArgs e)at System.Windows.Documents.TextContainerChangedEventHandler.Invoke(Object sender, TextContainerChangedEventArgs e)at System.Windows.Documents.TextContainer.EndChange(Boolean skipEvents)at System.Windows.Documents.TextRangeBase.EndChange(ITextRange thisRange, Boolean disableScroll, Boolean skipEvents)at System.Windows.Documents.TextRange.ChangeBlock.System.IDisposable.Dispose()at System.Windows.Controls.TextBox.OnTextPropertyChanged(String oldText, String newText)at System.Windows.Controls.TextBox.OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)at System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e)at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView)at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)at Infragistics.Controls.Grids.FilterColumnSettings.set_FilterCellValue(Object value)at Infragistics.Controls.Grids.Primitives.FilterRow.RemoveFilters(FilterRowCell cellBase)at Infragistics.Controls.Grids.Primitives.RowFilteringCommandBase.Execute(Object parameter)at Infragistics.Controls.CommandSource.LookForCommandTarget(FrameworkElement parent, Boolean execute, ICommand command)at Infragistics.Controls.CommandSource.InvokeCommand(Boolean execute)at Infragistics.Controls.CommandSource.EventFired(Object sender, EventArgs e)at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)at System.Windows.Input.InputManager.ProcessStagingArea()at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)at System.Windows.Application.RunInternal(Window window)
Have you any idea on this issue (or a workaround)
Thanks in advance for your answer.
New exception fired with same context...
System.NullReferenceException
at Infragistics.Controls.Grids.RowBase.get_Columns() at Infragistics.Controls.Grids.Primitives.CellsPanel.RenderCells(Double) at Infragistics.Controls.Grids.Primitives.CellsPanel.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.UIElement.Arrange(System.Windows.Rect) at System.Windows.ContextLayoutManager.UpdateLayout() at Infragistics.Windows.DockManager.ContentPane.ActivateInternalImpl(Boolean, Boolean, Boolean) at Infragistics.Windows.DockManager.ContentPane.ActivateInternal(Boolean, Boolean, Boolean) at Infragistics.Windows.DockManager.PaneTabItem.OnMouseDown(System.Windows.Input.MouseButtonEventArgs) at System.Windows.UIElement.OnMouseDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs) at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions
Hello Thibaud,
Thank you for your post. I have been looking into it and I am wondering if it is possible for you to send us isolated sample project, where this is reproduced, so we could be able to investigate this further for you.
Looking forward for your reply.
Hi Stefan,
Unfortunately, we have tried without success to reproduce this behavior in a simple POC.
With basics conditions, the XamGrid handled no exception when filtering and sorting data.
Have you any idea to investigate ?
Thank for your reply.
I was looking into the stacktrace, but without a sample project, where this is reproduced, I am not able to conclude what could be the reason for this issue. If you send us susch sample, we will be happy to assist you further with this.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.