We have a problem when we resize columns in GridViewHeaderCell. . I paste the stack trace below. I see that IsValidResizableCell method is throwing exception under OnColumnHeaderResize method. Is there a way to handle this error?
We are using telerik version 2016 (Q2 version)
SilverlightError: Unhandled Error in Silverlight Application
Category: ManagedRuntimeError
Message: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.IsValidResizableCell(Object gripper)
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnColumnHeaderResize(Object sender, DragDeltaEventArgs e)
at System.Windows.Controls.Primitives.Thumb.OnMouseMove(MouseEventArgs e)
at System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
We started getting this error after modifying the control template for GridViewHeaderRow. We had a business requirement to apply different border colour and different border thickness to Grid Headers. i am attaching the file for your reference.
Refer to style 'GridViewHeaderCell_RightAlignWithPrintMarginIndicator' and 'GridViewHeaderCell_LeftAlignWithPrintMarginIndicator' . The changes done to control template is replace the border defined under PART_HeaderCellGrid.
Rename the attached file (remove the Jpeg extension)