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

Cannot create an object of type 'System.Collections.Generic.List`1

19 Answers 721 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 04 Apr 2013, 06:14 PM
I'm getting the following error when I try to attach the grid to a datasource (I've tried both an ObjectDataSource and an EntityDataSource and I get the same message:

  RadGrid - RadGrid1System.Web.HttpParseException (0x80004005): Cannot create an object of type 'System.Collections.Generic.List`1[[Telerik.Web.UI.GridTableView+PersistableColumnSetting, Telerik.Web.UI, Version=2013.1.403.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4]]' from its string representation '(Collection)' for the 'ColumnSettings' property. ---> System.Web.HttpParseException (0x80004005): Cannot create an object of type 'System.Collections.Generic.List`1[[Telerik.Web.UI.GridTableView+PersistableColumnSetting, Telerik.Web.UI, Version=2013.1.403.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4]]' from its string representation '(Collection)' for the 'ColumnSettings' property. ---> System.Web.HttpException (0x80004005): Cannot create an object of type 'System.Collections.Generic.List`1[[Telerik.Web.UI.GridTableView+PersistableColumnSetting, Telerik.Web.UI, Version=2013.1.403.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4]]' from its string representation '(Collection)' for the 'ColumnSettings' property. at System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) at System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) at System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.DesignTimeTemplateParser.ParseControlsInternalHelper(DesignTimeParseData data, Boolean returnFirst) at System.Web.UI.DesignTimeTemplateParser.ParseControlsInternal(DesignTimeParseData data, Boolean returnFirst) at System.Web.UI.DesignTimeTemplateParser.ParseControl(DesignTimeParseData data) at System.Web.UI.Design.ControlSerializer.DeserializeControlInternal(String text, IDesignerHost host, Boolean applyTheme) at System.Web.UI.Design.ControlParser.ParseControl(IDesignerHost designerHost, String controlText, Boolean applyTheme) at System.Web.UI.Design.ControlDesigner.CreateClonedControl(IDesignerHost parseTimeDesignerHost, Boolean applyTheme) at System.Web.UI.Design.ControlDesigner.CreateViewControl() at System.Web.UI.Design.ControlDesigner.CreateViewControlInternal() at System.Web.UI.Design.ControlDesigner.get_ViewControl() at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer) 

19 Answers, 1 is accepted

Sort by
0
Keith
Top achievements
Rank 1
answered on 04 Apr 2013, 07:54 PM
Getting the same issue when applying a data source.  Seem to happen after upgrading to upgrading to 2013.1.403.40. 
0
Garry Goon
Top achievements
Rank 1
answered on 04 Apr 2013, 11:12 PM
Same issue here after upgrading to 2013.1.403.40
0
Michael
Top achievements
Rank 1
answered on 06 Apr 2013, 10:07 PM
same issue here
0
Les
Top achievements
Rank 1
answered on 06 Apr 2013, 11:43 PM
I have the same problem.
0
Dan
Top achievements
Rank 2
answered on 06 Apr 2013, 11:45 PM
I also have this issue after upgrading to 2013.1.403.40.  Deleting MasterTableView attribute ColumnSettings="(Collection)" fixed the error for me.

Honestly, does Telerik still test their controls before they release them?  I am not impressed with the number of bugs in the Q1 2013 release.

0
Christophe
Top achievements
Rank 1
answered on 07 Apr 2013, 11:43 PM
We are evaluating Telerik Same issue with my very first simple DataGrid!!!!!
Not impressed so far neither.
Any fix???
0
Donovan
Top achievements
Rank 1
answered on 08 Apr 2013, 02:57 AM
I also have exactly the same error after doing a clean install for evaluation purposes of 2013.1.403.45 when using the grid control. Hooking up my data access layer (which contains a single method returning a dataset) to a plain old grid view works without a hitch.

Anybody got any feedback as of yet?
0
Dan
Top achievements
Rank 2
answered on 08 Apr 2013, 03:25 AM
I have not seen any feedback from Telerik, but if you see my earlier post and delete the Master Table View attribute that I'm talking about (ColumnSettings="(Collection)") in your source view the grid will work for you.
0
John
Top achievements
Rank 1
answered on 08 Apr 2013, 05:03 AM
I'm evaluating the Telerik controls also - I dropped the grid on OK, but when I clicked 'Add Rad Script Manager' from the quick properties I receive the same error. 

Changing <MasterTableView ColumnSettings="(Collection)"> to <MasterTableView> worked to remove the error from designer view, but will this break the grids functionality?

Not the best start for my 30 day trial, we're deciding whether to move over from IG. What's the official recommendation until a new patch is released?
0
Oleg
Top achievements
Rank 1
answered on 08 Apr 2013, 06:16 AM
Same issue, like other users pointed out it started after upgrading to the latest version of Telerik a few days ago.
0
GACA
Top achievements
Rank 2
answered on 08 Apr 2013, 10:44 AM
I am also facing same issue.
0
Ricardo Cáceres
Top achievements
Rank 1
answered on 08 Apr 2013, 06:04 PM
Delete the property ColumnSettings="(Collection)" from the source view.
0
Dan
Top achievements
Rank 2
answered on 08 Apr 2013, 07:13 PM
I have opened a ticket with Telerik on this issue and will post the "approved" solution.  I agree with others that deleting the ColumnSettings="(Collection)" attribute from the MasterTableView source isn't necessarily the best long term option since it is unknown as to what impact that might have on other pieces of the grid's functionality.

For those of you who are looking at Telerik from IG, I was in your shoes 3 years ago after getting frustrated with IG's lack of documentation and support.  I have been very pleased with the QA on the Telerik products up until the Q1 2013 release.  This release has been very buggy and I hope it is not a sign of things to come.  I will say that the documentation and ease of use still is far superior to IG imho.
0
Maria Ilieva
Telerik team
answered on 09 Apr 2013, 11:24 AM
Hi,

We completely understand your concerns and frustration form the presented issue. Our dev team already fixed the problem and the fix will be available in the upcoming build next week.
Excuse us for any inconvenience this issue may lead.

Regards,
Maria Ilieva
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
Shawn Clabough
Top achievements
Rank 1
answered on 10 Apr 2013, 05:32 PM
I get the error just by unchecking "auto-generate columns at runtime".  I cannot remove the columnsetting attribute because my entire tag is only

<telerik:RadGrid ID="rgPosts" runat="server"></telerik:RadGrid>
0
Stormdude
Top achievements
Rank 1
answered on 12 Apr 2013, 04:26 AM
Agreed!
0
Simon
Top achievements
Rank 1
answered on 12 Apr 2013, 07:41 AM
Yes I get exactly the same thing and there is no Collection to remove, bloody frustrating!!!!
0
Maria Ilieva
Telerik team
answered on 15 Apr 2013, 08:42 AM
Hi,

If you make any changes in the RadGrid designer the mentioned property will appear in the RadGrid markup. Then you could remove it and fix the problem.
Note that the issue fix will be part of the upcoming SP2 which is scheduled for the end for this week.

Regards,
Maria Ilieva
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
Denius
Top achievements
Rank 1
answered on 08 Nov 2016, 01:29 PM

I have problem on RadGridView not show List Collection. Shows me System.Collections.Generic.List ' 1 on winforms.

How to fix it?

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Keith
Top achievements
Rank 1
Garry Goon
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Les
Top achievements
Rank 1
Dan
Top achievements
Rank 2
Christophe
Top achievements
Rank 1
Donovan
Top achievements
Rank 1
John
Top achievements
Rank 1
Oleg
Top achievements
Rank 1
GACA
Top achievements
Rank 2
Ricardo Cáceres
Top achievements
Rank 1
Maria Ilieva
Telerik team
Shawn Clabough
Top achievements
Rank 1
Stormdude
Top achievements
Rank 1
Simon
Top achievements
Rank 1
Denius
Top achievements
Rank 1
Share this question
or