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
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
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
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
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
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
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
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
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
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
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
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
Just replace <GridBoundColumn> with <telerik:GridBoundColumn> on all columns that are creating problem.
Thank you again.
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.
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?
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.
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.
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.
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.
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
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.
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.
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.
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!!!