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

Null Refrence exception when using grouping and custom skins

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 08 Oct 2008, 10:35 PM

When I add grouping to a radGrid in our application a NullRefrenceException is thrown in grid related code.  The grid is using custom skins and css files and the exception isn't thrown when the custom skins aren't used.  The skins are just adapted versions of the Office 2007 skin and work fine when grouping isn't used.  

Thanks

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridGroupSplitterColumn.PrepareCell(TableCell cell, GridItem item) +201
   Telerik.Web.UI.GridGroupHeaderDecorator.DecorateItem(GridTableView owner, GridColumn[] columnArray) +233
   Telerik.Web.UI.GridItem.PrepareItemStyle() +261
   Telerik.Web.UI.GridGroupHeaderItem.PrepareItemStyle() +121
   Telerik.Web.UI.RadGrid.PrepareRows(GridTableView view) +132
   Telerik.Web.UI.RadGrid.Render(HtmlTextWriter writer) +92
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Oct 2008, 08:47 AM
Hello Derek,

I can't reproduce this. Can you please copy-paste your RadGrid declaration here?

Kind regards,
Dimo
the Telerik team

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