This is a migrated thread and some comments may be shown as answers.

Exception in menuItemBestFit_Click(Object sender, EventArgs e)

1 Answer 25 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Renu
Top achievements
Rank 1
Renu asked on 11 Feb 2009, 09:26 AM

Hi,

I am using Rad Grid View of telerik version  8.2.0.0.
Sometimes I get an exception if I call 'best fit' on last column via context menu. It is not reproducible every time and here is complete log

 

System.NullReferenceException:
Telerik.WinControls.UI.GridHeaderCellElement.menuItemBestFit_Click(Object sender, EventArgs e) bei Telerik.WinControls.RadItem.OnClick(EventArgs e) bei Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e) bei Telerik.WinControls.UI.RadMenuItemBase.OnClick(EventArgs e) bei Telerik.WinControls.UI.RadMenuItem.OnClick(EventArgs e) bei Telerik.WinControls.RadItem.DoClick(EventArgs e) bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args) bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args) bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args) bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args) bei Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e) bei Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e) bei Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ScrollableControl.WndProc(Message& m) bei Telerik.WinControls.RadControl.WndProc(Message& m) bei Telerik.WinControls.UI.RadPopupControl.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) # ShowThreadExceptionDialog ---> [L-0] >>> Void HandleThreadException(System.Object, System.Threading.ThreadExceptionEventArgs) >>> Void OnThreadException(System.Exception) >>> Void WndProcException(System.Exception) >>> Void OnThreadException(System.Exception) >>> IntPtr Callback(IntPtr, Int32, IntPtr, IntPtr) >>> IntPtr DispatchMessageW(MSG ByRef) >>> Boolean System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32) >>> Void RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext) >>> Void RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext) >>> Void Run(System.Windows.Forms.Form)


Can I handle this issue at my end? Please let me know.

Regards,
Renu

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Feb 2009, 11:31 AM
Hello Renu,

Thank you for reporting this issue. I was not able to reproduce it using several tests. Could you please send us the code for the menuItemBestFit_Click method. Any additional details will help us when investigating this issue too. Thank you in advance.

Regards,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Renu
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or