Hi.
I need some help trying to track down a bug in my application that I think is coming from a RadTreeListView.
I am still trying to create a reproducible project that I can send.
The basic scenario when the exception occurs is:
1. click on hyperlink button in RadTreeListView row
2. The hyperlink button will display a modal RadWindow
3. press the right arrow key
At the time the key is pressed, it seems that the RadTreeListView row still has focus.
The row in the RadTreeListView is a single child item of the root node that does not have any children of its own.
I am thinking I need to set the correct value for the HasItems property of the child nodes in my tree using a setter, but have not tried that yet.
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
e.ExceptionObject = {System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.RadTreeListView.CanExpandHierarchyItemExecute(CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.GridView.GridViewDataControl.CanExpandHierarchyItemExecute(Object sender, CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.CommandBinding.OnCanExecute(Object sender, CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.CommandManager.CanExecuteCommandBinding(Object sender, CanExecuteRoutedEventArgs e, CommandBinding commandBinding)
at Telerik.Windows.Controls.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at Telerik.Windows.Controls.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at Telerik.Windows.Controls.CommandManager.OnCanExecute(Object sender, CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.CanExecuteRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
at Telerik.Windows.Controls.RoutedCommand.CanExecute(Object parameter, UIElement target)
at Telerik.Windows.Controls.RoutedCommand.System.Windows.Input.ICommand.CanExecute(Object parameter)
at Telerik.Windows.Controls.TreeListView.TreeListViewKeyboardCommandProvider.AddExpandCommandIfNeeded(IList`1 commandsToExecute)
at Telerik.Windows.Controls.TreeListView.TreeListViewKeyboardCommandProvider.ProvideCommandsForKey(Key key)
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnKeyDown(KeyEventArgs e)
at System.Windows.Controls.Control.OnKeyDown(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Any ideas?
RadControls_for_Silverlight_4_2010_2_0812
Thank you.
I need some help trying to track down a bug in my application that I think is coming from a RadTreeListView.
I am still trying to create a reproducible project that I can send.
The basic scenario when the exception occurs is:
1. click on hyperlink button in RadTreeListView row
2. The hyperlink button will display a modal RadWindow
3. press the right arrow key
At the time the key is pressed, it seems that the RadTreeListView row still has focus.
The row in the RadTreeListView is a single child item of the root node that does not have any children of its own.
I am thinking I need to set the correct value for the HasItems property of the child nodes in my tree using a setter, but have not tried that yet.
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
e.ExceptionObject = {System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.RadTreeListView.CanExpandHierarchyItemExecute(CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.GridView.GridViewDataControl.CanExpandHierarchyItemExecute(Object sender, CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.CommandBinding.OnCanExecute(Object sender, CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.CommandManager.CanExecuteCommandBinding(Object sender, CanExecuteRoutedEventArgs e, CommandBinding commandBinding)
at Telerik.Windows.Controls.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at Telerik.Windows.Controls.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at Telerik.Windows.Controls.CommandManager.OnCanExecute(Object sender, CanExecuteRoutedEventArgs e)
at Telerik.Windows.Controls.CanExecuteRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
at Telerik.Windows.Controls.RoutedCommand.CanExecute(Object parameter, UIElement target)
at Telerik.Windows.Controls.RoutedCommand.System.Windows.Input.ICommand.CanExecute(Object parameter)
at Telerik.Windows.Controls.TreeListView.TreeListViewKeyboardCommandProvider.AddExpandCommandIfNeeded(IList`1 commandsToExecute)
at Telerik.Windows.Controls.TreeListView.TreeListViewKeyboardCommandProvider.ProvideCommandsForKey(Key key)
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnKeyDown(KeyEventArgs e)
at System.Windows.Controls.Control.OnKeyDown(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Any ideas?
RadControls_for_Silverlight_4_2010_2_0812
Thank you.