We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridCrashes when clicking in the corner between header and first cell

Hi,

we are using Syncfusion Grid quite successfully but know we found an ugly bug that decreases the user experience. We have a grid containing some column with a custom CellItemTemplate (not containing a textbox). When clicking on the corner between header and first cell (see red marked area on attached image). I paste the stack trace below this post. Is this an error in our application or is this a known bug on your side?

Thanks for your help,
Matthias

System.InvalidCastException: Unable to cast object of type 'Syncfusion.Windows.Controls.Grid.GridDataHeaderCellControl' to type 'System.Windows.Controls.TextBox'.
   at Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer`1.get_CurrentCellUIElement()
   at Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer`1.GetControlTextFromEditor()
   at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.SetControlText(String value, Boolean enforceApplyControlText)
   at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.set_ControlText(String value)
   at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.RaiseInitialize(GridActivateCurrentCellOptions options)
   at Syncfusion.Windows.Controls.Grid.GridCurrentCell.BeginEditHelper(GridActivateCurrentCellOptions activateOptions)
   at Syncfusion.Windows.Controls.Grid.GridCurrentCell.Activate(RowColumnIndex cellRowColumnIndex, GridActivateCurrentCellOptions activateOptions)
   at Syncfusion.Windows.Controls.Grid.GridCurrentCell.MoveTo(Int32 rowIndex, Int32 columnIndex, GridActivateCurrentCellOptions activateOptions)
   at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.MoveCurrentHelper(FrameworkElement owner, MouseControllerEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.MouseDown(MouseButtonEventArgs e, Boolean isPreview)
   at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.OnPreviewMouseDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.MouseEventTargetCollection.OnPreviewMouseDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.OnPreviewMouseDown(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnPreviewMouseDownThunk(Object sender, MouseButtonEventArgs 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.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)

4 Replies

MB Matthias Baumann November 16, 2012 12:44 PM UTC

I forgot to attach the image, sorry. here it is :)


GridCrash_6cfbefdf.zip


RG Rajasekar G Syncfusion Team November 25, 2012 06:05 PM UTC

Hi Matthias,

We updated the solution for this query in the incident #100393.

Please let us know if you need any more details.

Thanks
Raja sekar.G



MB Matthias Baumann December 12, 2012 03:46 PM UTC

Hi,

thanks for your help. Unfortunately I don’t have an incident with the given id. Can you please check, if it is correctly assigned to my account? Thanks!

Best,

Matthias



RG Rajasekar G Syncfusion Team December 19, 2012 04:39 AM UTC

Hi Matthias,

Apologies , please ignore the previous erroneous update which have updated with a wrong incident ID. You could be able view the incidents under your account, so could you please create new incident for this query through Direct Trac system and we will provide you the patch for this fix through the incident.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

We will wait to hear from and please let us know if you need any assistance on this.

Regards,

Raja sekar.G

Loader.
Live Chat Icon For mobile
Up arrow icon