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

Multicolumn Headers

4 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jerry Jansen
Top achievements
Rank 1
Jerry Jansen asked on 19 Jun 2012, 02:23 PM
I am trying out the new multicolumn headers feature in version 2012.2.607.35 and have a couple of issues:

Using the ColumnGroups Collection editor on the property page for the grid and as soon as I click on the Add button I get the error message:

Group name cannot be null or empty string.
Parameter name: Name

Which is empty because I just clicked on the Add button!

Then I enter the Name for the GridColumnGroup which I am using "ContactDetails" and then click on the OK button and in design mode the display of the grid crashes and displays:

RadGrid - RadGrid1System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index at System.Web.UI.ControlCollection.get_Item(Int32 index) at System.Web.UI.WebControls.TableCellCollection.get_Item(Int32 index) at Telerik.Web.UI.GridHeaderItem.get_Item(String columnUniqueName) at Telerik.Web.Design.RadGridDesigner.Grid_ItemDataBound(Object sender, GridItemEventArgs e) at Telerik.Web.UI.RadGrid.OnItemDataBound(GridItemEventArgs e) at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) at Telerik.Web.UI.GridTableView.CreateMultiColumnHeaders(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead) at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at Telerik.Web.UI.GridTableView.PerformSelect() at Telerik.Web.UI.GridTableView.DataBind() at Telerik.Web.UI.RadGrid.DataBind() at System.Web.UI.Design.WebControls.DataBoundControlDesigner.DataBind(BaseDataBoundControl dataBoundControl) at Telerik.Web.Design.RadGridDesigner.DataBind(BaseDataBoundControl dataBoundControl) at System.Web.UI.Design.WebControls.BaseDataBoundControlDesigner.GetDesignTimeHtml()

4 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 20 Jun 2012, 11:39 AM
Hello,

 Thank you for reporting this. The designer for the ColumnGroups collection is currently not supported. We will try to improve this for the next release of the controls.

All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Huy
Top achievements
Rank 1
answered on 23 Aug 2012, 03:33 AM
I have a same problem when trying access to the controls in header template :(
0
Marin
Telerik team
answered on 24 Aug 2012, 08:03 AM
Hello,

 Can you provide more details on the error. What exactly do you try to perform when an error is raised, if it originates when the grid is in design mode and what is the message and stack trace of the exception.

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tayab
Top achievements
Rank 1
answered on 12 Dec 2012, 09:53 PM
Great ! I just spent hours to figure out why I keep seeing the same stack trace when using ColumnGroups property.

We have the product due tomorrow, and I wasted all day !
Tags
Grid
Asked by
Jerry Jansen
Top achievements
Rank 1
Answers by
Marin
Telerik team
Huy
Top achievements
Rank 1
Tayab
Top achievements
Rank 1
Share this question
or