This is a migrated thread and some comments may be shown as answers.
Error: Telerik.Web.UI.GridColumnCollection must have items of type ...
30 Answers 818 Views
This is a migrated thread and some comments may be shown as answers.
Jürgen R. Weiss
Top achievements
Rank 1
Jürgen R. Weiss asked on 19 Feb 2008, 09:51 AM
Hi,
I have no problems adding the RadGrid control in the designer, but as soon as I configure the data source an error comes up (see below). I found an article with the same problem (www.telerik.com/community/forums/thread/b311D-bbedtc.aspx ) and also registered in the GAC the assemblies Telerik.Web.UI.dll and Telerik.Web.Design.dll. Any help will be highly appreciated. Need to get this going or will have to choose controls from other vendors (which I personally wouldnt like) :-)

Many thanks. BR, Jurgen

 RadGrid - RadGrid1System.Web.HttpParseException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. ---> System.Web.HttpParseException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. ---> System.Web.HttpException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. at System.Web.UI.CollectionBuilder.GetChildControlType(String tagName, IDictionary attribs) 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) --- End of inner exception stack trace --- 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) --- End of inner exception stack trace --- 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.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.get_Grid() at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer)

30 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Feb 2008, 12:12 PM
Hi Jürgen,

Do you have reference to the Telerik.Web.Design.dll? Because of such problems we removed Telerik.Web.Desing.dll and with the upcoming service pack you will get single dll. The service pack will be uploaded officially Monday next week.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jürgen R. Weiss
Top achievements
Rank 1
answered on 20 Feb 2008, 03:20 PM
Hi Vlad,
yes I do have references to both, the UI and the Design DLLs, in my website. I am using VS 2008 with the latest service packs applied on a XP SP2 machine also with all service packs applied.
Many thanks, Jurgen
0
Vlad
Telerik team
answered on 20 Feb 2008, 03:48 PM
Hi Jürgen,

I have attached small example web site with the latest unofficial Telerik.Web.UI build which will be released next week.

Please check the behavior of the new build and let me know how it goes.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jürgen R. Weiss
Top achievements
Rank 1
answered on 21 Feb 2008, 07:54 AM
Hi Vlad,
intitally it did not solve my problem. After I un-installed Prometheus completely, then opened the website you sent me, it was working. I guess that is not really the solution. I think I am waiting for the Q4 release.
Many thanks. BR, Jurgen
0
Dana B.
Top achievements
Rank 1
answered on 27 Feb 2008, 01:48 AM
I am getting this error as well.  I've installed the latest version of Prometheus dated 2/25/2008.  I've removed Telerik.Web.Design.dll from the GAG, the local web sites' \bin folder and web.config file.  The grid will display properly and I do not have errors as long as I leave the "Auto generate columns at runtime" check box selected.  As soon as I uncheck the checkbox and add a SqlDataSource, the grid/page displays this error.  Is there anywhere else I need to remove the registration of Telerik.Web.Design.dll?
0
Yavor
Telerik team
answered on 27 Feb 2008, 06:21 AM
Hi Dana,

Is this just a design time error, or a runtime one. Also, Does the error prevent the sample from compiling and running? Additionally, it would be best if you open a formal support ticket, with a screenshot of the error, as well as a small sample, which reproduces it, for further testing.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dana B.
Top achievements
Rank 1
answered on 27 Feb 2008, 07:51 AM
Greetings Yavor,

The error shows up in design time and run time.  I can't run the sample when I try to view the page in a browser.

Below is the .aspx code for the grid when I manually create a databound column, which causes the error.  When I hover over 'telerik.web.ui.gridboundcolumn'  the yellow hover indicator shows the following:

Validation (XHTML 1.0 Transistional): Element 'telerik.web.ui.gridboundcolumn' is not supported.

<telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="SqlDataSource7"   
                        GridLines="None" Skin="Telerik" AutoGenerateColumns="False">  
                        <ExportSettings> 
                            <Pdf FontType="Subset" PaperSize="Letter" /> 
                            <Excel Format="Html" /> 
                            <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" /> 
                        </ExportSettings> 
                        <MasterTableView CommandItemDisplay="None"   
                            CurrentResetPageIndexAction="SetPageIndexToFirst" DataSourceID="SqlDataSource7"   
                            Dir="LTR" Frame="Border" TableLayout="Auto">  
                            <RowIndicatorColumn CurrentFilterFunction="NoFilter"   
                                FilterListOptions="VaryByDataType" Visible="False">  
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn CurrentFilterFunction="NoFilter"   
                                FilterListOptions="VaryByDataType" Resizable="False" Visible="False">  
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <Columns> 
                                <telerik.web.ui.gridboundcolumn currentfilterfunction="NoFilter"   
                                    datafield="TotalVisits" filterlistoptions="VaryByDataType"   
                                    forceextractvalue="None" headertext="TotalVisits" uniquename="TotalVisits"></telerik.web.ui.gridboundcolumn> 
                            </Columns> 
                            <EditFormSettings> 
                                <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">  
                                </EditColumn> 
                            </EditFormSettings> 
                        </MasterTableView> 
                    </telerik:RadGrid> 

Thanks,

Dana
0
Dana B.
Top achievements
Rank 1
answered on 28 Feb 2008, 10:40 PM
I created a sample project using an Access database.  My production data is contained within a remote SQL 2005 database.  I do not get the error within my sample project so I have not sent one in on a support ticket.  Could this have anything to do with my radgrid using a SQLDatasource connection?
0
Yavor
Telerik team
answered on 29 Feb 2008, 11:35 AM
Hello Dana,

I do not think this behavior has anything to do with using an SQL database. If you can reproduce the behavior with it, however, you can send us the sample in a support ticket, for further investigation.  

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 24 Mar 2008, 06:28 PM
This behavior was happening to me also because I had manually added the 2007 Q3 SP1 controls to my toolbox in VS 2008.  Then I had referenced the 2007 Q3 SP2 Telerik.Web.UI.dll in my project. 

When I created a new page and added a RadGrid to it I got the error described above.

To solve the issue, I deleted the Telerik Tab from my VS 2008 Toolbox and recreated it.  When I readded the items, I browsed to the 2007 Q3 SP2 dll.

Hope this helps,

Paul
0
nanana99
Top achievements
Rank 1
answered on 29 May 2008, 01:58 PM

telerik.web.ui.gridboundcolumn


Hi,
Same Problem, lost a couple of my hairs and hours :(.
Using SQL 2005, VS 2008, .net Framework 3.5, and Teleriks RadControls for ASP.NET AJAX.

I nearly got sick checking out the latest from telerik for asp.net.
slqDataSource bound to Grid, activating autogenerate for columns, then adding a template column did result in the following error:

System.Web.HttpParseException:
Telerik.Web.UI.GridColumnCollection must have items of type
Telerik.Web.UI.GridColumn. ... is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'


So I had a look at www.telerik.com and found this thread. After consulting the installation requirements (yes, I did'nt before because the installation process for the controls was so clean and without problems, guessing everything was done.) I became aware that ASP.NET AJAX Extentions where not installed.

Removing the Rad installation, installing ASP.NET AJAX without any further intervention/configuration and then installed the Trail-Version again had no effect for old vs solution I've created before, hence problem still the same.

Then after creating a new Web Project, adding an ajax panel to the side, I decided to add through smart tag the "ScriptManager" and not "RadScriptManager".
And "bingo" the newly inserted grid using sqlDataSource using autogenerate columns, added manually a templatecolumn, I did not receive anymore the error.

Even now when switching from autogenerate, the columns are converted to templatecolumns as expected.
And, now the behavior during disigntime is fast, it was verry slow before, even starting the site took much too long.

At the end I'm not shure if asp.net ajax extentions was the bad part and or RadScriptManager placed on WebForm instead of (like now) using the ScriptManager.

Hope Support could give more information as many may not miss RadScriptManager!

regards
urs


0
Yavor
Telerik team
answered on 30 May 2008, 06:27 AM
Hi urs,

It is actually very hard to pinpoint the cause of this problem. I suspect that it may be related to either installation, or dll referencing. Another thing that you may try, is to register the telerik script manager's webresource in the web.config. This is done through the smart tag, as shown in the screenshot attached to this message.
In any case, I hope that the project is not working as per your requirements, and that the information furnished this far in this thread will benefit the community. If the issue is persisting at your end, and the present work-around is not suitable, you may consider opening a formal support ticket, and sending us a sample with the used dlls, for further investigation.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
James Shelton Agar
Top achievements
Rank 2
answered on 24 Jun 2008, 11:36 PM

i have met the problem today and that's how i fixed it.

1. web.config, under
<Controls>

add the following line

<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>

Where assmembly need to match your installed version.
so that when registering assmably for each page, it will know which control you are actually looking for

alternativly, you could replace the Regster with 

<%@ Register assembly="Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

for each page.
hope it helps

0
Umer
Top achievements
Rank 1
answered on 27 Jun 2008, 05:00 PM
I just resolved this problem.

Just replace <GridBoundColumn> with <telerik:GridBoundColumn> on all columns that are creating problem.

0
Charles
Top achievements
Rank 1
answered on 09 Apr 2009, 02:59 AM
Thank you. I was struggling since last 2-3 days with this issue and I was using radscriptmanager which was causing this issue. After reading this post I used script manager instead and all issues got resolved.
Thank you again.
0
Sean
Top achievements
Rank 1
answered on 24 Feb 2010, 06:32 AM
This error started reappearing for me with version 2009.3.1103.35.

I'm registering the dll with <%@ Register assembly="Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

I using asp:ScriptManager instead of RadScriptManager, I don't have Telerik.Web.Design.dll, I'm using <telerik:GridBoundColumn> but

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManager>  
 
<telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" ShowStatusBar="true"  
        AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False"  
        AllowPaging="false" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"  
        OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender">  
          
        <MasterTableView Width="100%" DataKeyNames="Column1" AllowMultiColumnSorting="True">  
            <DetailTables>  
                <Columns>  
                    <telerik:GridBoundColumn SortExpression="Column2" HeaderText="Column2" HeaderButtonType="TextButton" DataField="Column2">  
                    </telerik:GridBoundColumn>  
                </Columns>  
                <Columns>  
                    <telerik:GridBoundColumn SortExpression="Column3" HeaderText="Column3" HeaderButtonType="TextButton" DataField="Column3">  
                    </telerik:GridBoundColumn>  
                </Columns>  
                <Columns>  
                    <telerik:GridBoundColumn SortExpression="Column4" HeaderText="Column4" HeaderButtonType="TextButton" DataField="Column4">  
                    </telerik:GridBoundColumn>  
                </Columns>  
            </DetailTables>  
              
            <Columns>  
                <telerik:GridBoundColumn SortExpression="Column1" HeaderText="Column1" HeaderButtonType="TextButton" DataField="Column1">  
                </telerik:GridBoundColumn>  
            </Columns>  
        </MasterTableView>  
          
    </telerik:RadGrid>  
 

Results in Telerik.Web.UI.GridTableViewCollection must have items of type 'Telerik.Web.UI.GridTableView'. 'Columns' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'

I have the examples installed on my machine and they appear to run correctly.
0
Sean
Top achievements
Rank 1
answered on 28 Feb 2010, 09:48 PM
Anyone at Telerik able to offer any suggestions?

I've tried installing Telerik.Web.UI.dll to the GAC, I've tried removing the Telerik.Web.UI.dll from the GAC and running with it locally referenced, I've tried with Telerik.Web.Design.dll referenced within the project and with it not referenced, and manually moving the dlls into the bin folder.  The version of both the Telerik.Web.UI.dll and Telerik.Web.Design.dll is 2009.3.1103.20, not 2009.3.1103.35 as suggested earlier, but the GAC contains references to both Telerik.Web.Design version 2009.3.1103.20 and 2009.3.1103.35, could this be the issue?
0
Sean
Top achievements
Rank 1
answered on 02 Mar 2010, 07:12 AM
Bump
0
Yavor
Telerik team
answered on 03 Mar 2010, 08:26 AM
Hello Sean,

If the dlls are referenced locally, there should not be an issue with the application. If the problem persists, you can open a formal support ticket, and send us the project. We will debug it locally, and determine if the exception is caused by improper references, or something else.

Kind regards,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Doug Beard
Top achievements
Rank 1
answered on 23 Mar 2010, 03:05 PM
I have this error when utilizing an inherited grid.  Screws the designer file up and the columns must be commented to regen the designer.
0
Sebastian
Telerik team
answered on 23 Mar 2010, 03:45 PM
Hello Doug,

Please follow the guidelines from this documentation topic to ensure the that design-time of your inherited RadGrid will function as expected:
http://www.telerik.com/help/aspnet-ajax/grdinheritance.html

Regards,
Sebastian
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Doug Beard
Top achievements
Rank 1
answered on 23 Mar 2010, 03:47 PM
Been there and done that.
This is a bug that was introduced with the latest 2009 Q3 release.  Has nothing to do with my implementation as it worked fine before the latest release and is of evidence here in this thread with others not inheriting the grid and suffer similar problems.
0
Yavor
Telerik team
answered on 24 Mar 2010, 02:53 PM
Hello Doug,

As mentioned previously, the best option at present would be for you to open a formal support ticket, and provide the problematic implementation for additional review.

Best wishes,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Doug Beard
Top achievements
Rank 1
answered on 24 Mar 2010, 03:23 PM
No time at the moment.
0
Ahmad Petersen
Top achievements
Rank 1
answered on 23 Nov 2010, 03:30 PM
Hi James Shelton Agar,

I had the same original issue. The reply you posted on Jun 24, 2008 in this forum, worked for me in telerik 2010.2.713.35

Thank you! :)

Ahmad Petersen

0
TechSavvySam
Top achievements
Rank 1
answered on 25 May 2011, 05:41 AM
Yep, I'm using 2011.1.413.35 and this problem still shows up for me.

I have a support ticket open that Telerik is IGNORING.  Apparently their 24 hour response time means nothing.

if a Telerik employee reads this, I'm referring to
  • Ticket ID: 425307

At some point, having Tier1 email support personnel say they can't reproduce the problem gets really old.  This is where having no phone support becomes a problem.  I've read through everything above and there are no satisfactory solutions shown.  Yes you can change all of the "telerik.web.ui" to "telerik:" but that forever makes the control uneditable by the wizards--essentially any changes that you make in the wizard (if it even runs) cause no updates back to the aspx file.

YOU GUYS CAN SEE THAT THIS PROBLEM HAS BEEN OUT THERE FOR YEARS--PLEASE FIGURE OUT WHAT THE HECK IS GOING ON...

If you denote a tone of irritation you are right.  I have burned 10 hours today and tonight trying to fix this page and I am dead in the water until I can get it fixed.





0
Georgi Tunev
Telerik team
answered on 25 May 2011, 07:58 AM
Hello Sam,

I just answered your other support ticket on the same subject. Please accept our apologies for the delayed reply in the other ticket - because of national holidays in Bulgaria, we were operating with limited staff during the last couple of days. Our support team is currently reviewing the ticket and they will contact you in the next couple of hours.


Greetings,
Georgi Tunev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
TechSavvySam
Top achievements
Rank 1
answered on 25 May 2011, 08:35 PM
Hope this may help somebody else:

At the moment I have a much less than optimal solution that seems to be working--not sure how long before this will break since I've never seemed to be able to keep my Telerik development environment working for more than a month or so at a time.

This is what I did:

1) uninstalled 2011.1.413.35
2) installed 2011.1.519.35

3) went to the directory:

C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q1 2011\Bin35

in the command prompt window and ran the command:

C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q1 2011\Bin35>gacutil /i Telerik.Web.UI.dll

to install this assembly into the GAC

THEN:

In each project I reran the Telerik config menu in Visual Studio and selected using the assembly from the GAC.  Then went to the References section of the project and set Telerik.Web.UI "Copy Local" to True.

This seems to have stopped the following problems:

1. tags getting created with "telerik.web.ui" instead of "telerik:" and not being recognized
2. inability to run the smart wizard for grid
3. RadListView smart wizard "Layout Editor" closing unexpectedly when clicking on "Functionality"

So it appears that even though the Telerik installation MSI doesn't register Telerik.Web.UI.dll in the GAC YOU MUST DO SO MANUALLY OR YOU WILL HAVE PROBLEMS IN VS 2008 DEVELOPMENT ENVIRONMENT.
0
Frank Tzanabetis
Top achievements
Rank 1
answered on 21 Oct 2011, 01:22 AM
Thanks Sam, changing "telerik.web.ui" to "telerik:" did the trick for me.  I hate UI development...
0
Paul
Top achievements
Rank 1
answered on 21 Jan 2016, 04:24 PM

Parser Error Message: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'ItemTemplate' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. 

Inspired by this post http://www.telerik.com/forums/itemtemplate-at-gridcolumn, I found a simple spacing typo in my syntax.

That was it!!! 

Tags
Grid
Asked by
Jürgen R. Weiss
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jürgen R. Weiss
Top achievements
Rank 1
Dana B.
Top achievements
Rank 1
Yavor
Telerik team
Paul
Top achievements
Rank 1
nanana99
Top achievements
Rank 1
James Shelton Agar
Top achievements
Rank 2
Umer
Top achievements
Rank 1
Charles
Top achievements
Rank 1
Sean
Top achievements
Rank 1
Doug Beard
Top achievements
Rank 1
Sebastian
Telerik team
Ahmad Petersen
Top achievements
Rank 1
TechSavvySam
Top achievements
Rank 1
Georgi Tunev
Telerik team
Frank Tzanabetis
Top achievements
Rank 1
Paul
Top achievements
Rank 1
Share this question
or