Error: Telerik.Web.UI.GridColumnCollection must have items of type ...

31 posts, 0 answers
  1. Jürgen R. Weiss
    Jürgen R. Weiss avatar
    3 posts
    Member since:
    Sep 2003

    Posted 19 Feb 2008 Link to this post

    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)
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Feb 2008 Link to this post

    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
  3. Jürgen R. Weiss
    Jürgen R. Weiss avatar
    3 posts
    Member since:
    Sep 2003

    Posted 20 Feb 2008 Link to this post

    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
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Feb 2008 Link to this post

    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
  5. Jürgen R. Weiss
    Jürgen R. Weiss avatar
    3 posts
    Member since:
    Sep 2003

    Posted 21 Feb 2008 Link to this post

    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
  6. Dana B.
    Dana B. avatar
    14 posts
    Member since:
    Jul 2006

    Posted 26 Feb 2008 Link to this post

    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?
  7. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 27 Feb 2008 Link to this post

    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
  8. Dana B.
    Dana B. avatar
    14 posts
    Member since:
    Jul 2006

    Posted 27 Feb 2008 Link to this post

    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
  9. Dana B.
    Dana B. avatar
    14 posts
    Member since:
    Jul 2006

    Posted 28 Feb 2008 Link to this post

    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?
  10. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 29 Feb 2008 Link to this post

    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
  11. Paul
    Paul avatar
    10 posts
    Member since:
    Jan 2008

    Posted 24 Mar 2008 Link to this post

    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
  12. nanana99
    nanana99 avatar
    20 posts
    Member since:
    Jul 2007

    Posted 29 May 2008 Link to this post

    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


  13. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 30 May 2008 Link to this post

    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
  14. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 24 Jun 2008 Link to this post

    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

  15. Umer
    Umer avatar
    1 posts
    Member since:
    Jun 2008

    Posted 27 Jun 2008 Link to this post

    I just resolved this problem.

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

  16. Charles
    Charles avatar
    1 posts
    Member since:
    Apr 2009

    Posted 08 Apr 2009 Link to this post

    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.
  17. Sean
    Sean avatar
    6 posts
    Member since:
    Aug 2008

    Posted 24 Feb 2010 Link to this post

    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.
  18. Sean
    Sean avatar
    6 posts
    Member since:
    Aug 2008

    Posted 28 Feb 2010 Link to this post

    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?
  19. Sean
    Sean avatar
    6 posts
    Member since:
    Aug 2008

    Posted 02 Mar 2010 Link to this post

    Bump
  20. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 03 Mar 2010 Link to this post

    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.
  21. Doug Beard
    Doug Beard avatar
    55 posts
    Member since:
    Sep 2009

    Posted 23 Mar 2010 Link to this post

    I have this error when utilizing an inherited grid.  Screws the designer file up and the columns must be commented to regen the designer.
  22. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Mar 2010 Link to this post

    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.
  23. Doug Beard
    Doug Beard avatar
    55 posts
    Member since:
    Sep 2009

    Posted 23 Mar 2010 Link to this post

    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.
  24. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 24 Mar 2010 Link to this post

    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.
  25. Doug Beard
    Doug Beard avatar
    55 posts
    Member since:
    Sep 2009

    Posted 24 Mar 2010 Link to this post

    No time at the moment.
  26. Ahmad Petersen
    Ahmad Petersen avatar
    1 posts
    Member since:
    May 2009

    Posted 23 Nov 2010 Link to this post

    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

  27. TechSavvySam
    TechSavvySam avatar
    38 posts
    Member since:
    Jul 2009

    Posted 25 May 2011 Link to this post

    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.





  28. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 May 2011 Link to this post

    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.

  29. TechSavvySam
    TechSavvySam avatar
    38 posts
    Member since:
    Jul 2009

    Posted 25 May 2011 Link to this post

    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.
  30. Frank Tzanabetis
    Frank Tzanabetis avatar
    5 posts
    Member since:
    Jul 2008

    Posted 20 Oct 2011 Link to this post

    Thanks Sam, changing "telerik.web.ui" to "telerik:" did the trick for me.  I hate UI development...
Back to Top