Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
Error at pivot when user hits Alt + Tab
posted

Hi Team,

Im facing an issue the details of the scenario is as below

User have loaded the control with data and after playing around dragging and dropping the data using the data selector, if he switches to other window by using ALT + TAB 

an error is thrown and below is the exception trace.

Technical Overview : 

The data sources of pivot grid and data selector is different.

On items selected from data selector. The rows / columns hierarchies are created and the pivot grid is reloaded 

Error Stack Trace : 

------------------

System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.Controls.Menus.XamDataTreeNode.HandleKeyDown(KeyEventArgs e)
at Infragistics.Controls.Menus.XamDataTree.XamDataTree_KeyDown(Object sender, KeyEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
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.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

------------------

Note : I am using version 14.1

Please help me with some solutions of fair pointers. Let me know if any more clarification needed over the issue

Thanks,

Pratik

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Pratik,

    Thank you for your post.

    I have been doing an initial investigation into this issue, but as of yet, I am unable to reproduce this issue that you are seeing. I was however, testing against a base use case in which the data source of the XamPivotGrid and the XamPivotDataSelector were the same, though, which may explain why I was currently unable to see this behavior that you are seeing.

    I am slightly unclear on how a different data source would make a difference here, though, especially being that from the stack trace, the exception that you are seeing appears to be occurring in relation to a KeyDown handler for the XamDataTree, which is used in the XamPivotDataSelector. Before I continue investigating into this issue, would it be possible for you to please provide a little bit more information on the following?

    1. At what point are you pressing ALT+TAB to switch the window to reproduce this exception, or does it just happen when interacting with the XamPivotDataSelector and pressing ALT+TAB?
    2. How and when is the hierarchy for your XamPivotGrid data source being created based on the selection of the XamPivotDataSelector? Are you handling the ResultChanged event of the XamPivotDataSelector, and constructing the ItemsSource for the XamPivotGrid based on that, perhaps?

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

Children
No Data