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

Driving me nuts :(

13 Answers 418 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark H
Top achievements
Rank 1
Mark H asked on 13 May 2009, 05:04 PM
I have spent the last couple of weeks trying to evaluate the RadControls and OpenAccess and the whole process has been driving me nuts. If the website, the forums and the products themselves didn't look so good I would have given up ages ago.

I'm running XP SP2 and VS2008SP1 and the latest stable 2009 build

As per a previous post, the problems of which I circumvented with a workaround - I am repeatedly seeing a design-time issue.

I have just:

cleared out the cache and reinstalled the telerik controls.
created a new web project
created a sqldatasource and configured and tested it
dragged on a radgrid and assigned the sqldatasource to it

As soon as do this, at design-time (and runtime) I get:

Error creating control:

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'. + loads more of the same

I have tried with teh Telerik.Web.UI from the GAC and from the installation folder.

I feel like I've been round in circles on all this and lost track of what's what :(

I have been unable to find any definitive guide to what a working simple project's footprint should look like to a) fix this and b) avoid it happening again

Help! Please :)

Mark

as an update:

the following shows "Cannot resolve symbol telerik" for all entities in the <Columns> collection

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"  
        GridLines="None"
<MasterTableView AutoGenerateColumns="False" DataKeyNames="ID"  
            DataSourceID="SqlDataSource1"
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik.web.ui.gridboundcolumn datafield="ID" datatype="System.Int32"  
            headertext="ID" readonly="True" sortexpression="ID" uniquename="ID"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="Code" headertext="Code"  
            sortexpression="Code" uniquename="Code"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="FirstName" headertext="FirstName"  
            sortexpression="FirstName" uniquename="FirstName"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="LastName" headertext="LastName"  
            sortexpression="LastName" uniquename="LastName"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="EmailAddress"  
            headertext="EmailAddress" sortexpression="EmailAddress"  
            uniquename="EmailAddress"></telerik.web.ui.gridboundcolumn> 
    </Columns> 
</MasterTableView> 
    </telerik:RadGrid> 
 






13 Answers, 1 is accepted

Sort by
0
Mark H
Top achievements
Rank 1
answered on 13 May 2009, 11:47 PM
Looking at the sample code it's chat what should be generated is telerik:GridBoundColumn rather than telerik.web.ui.gridboundcolumn - if I change these manually all is fine.

Any ideas why the wrong declaration is being generated?

Mark
0
Sebastian
Telerik team
answered on 18 May 2009, 10:25 AM
Hello Mark,

Can you please verify that you have the following Register directive at the top of the page in which the grid resides:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

This should ensure that the grid columns serialized from design-time should be with properly defined tags and the design-time errors you received should be eliminated.

Additionally, you may consider clearing the VS cache to ensure that the latest version of the Telerik.Web.UI.dll assembly will be referenced.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark H
Top achievements
Rank 1
answered on 18 May 2009, 11:07 AM
That has not worked

  • Removed the current radgrid
  • Closed VS2008SP1
  • Cleared the ProjectAssemblies folder
  • Restarted VS
  • Added the directive as specified
  • Added the radgrid and assigned its datasource

I still get the problems (the radgrid cannot be parsed which is a design/runtime issue and doesn't let the ap execute and the error creating control issues which seem to be designtime only

(I raised a ticket on the incorrect tagging problem earlier BTW)

Mark
0
Sebastian
Telerik team
answered on 18 May 2009, 11:39 AM
Hello Mark,

I am sorry to hear that the directions from my previous post were not helpful enough. Can you please confirm that you have a reference to the Telerik.Web.Design.dll in your project as well? See this blog post for more details on why you need a reference to this assembly.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark H
Top achievements
Rank 1
answered on 18 May 2009, 11:52 AM
(Note I am already on VS2008SP1)

I have added Telerik.Web.Design as a reference and as a dll in the Bin folder this has made no difference to the problem /except that/ after following the previous step the "Error creating control" design time issues had gone away (albeit maybe only for a moment) and now they are visible again.

  • Deleted the radgrid
  • Added the radgrid and set it datasource -> HttpParseException thrown as before

Mark


0
Sebastian
Telerik team
answered on 18 May 2009, 12:00 PM
Hi Mark,

Unfortunately I am running out of ideas here. As a last suggestion before requesting a simple project which exhibits the erratic behavior, can you please verify that you do not have any hard-coded versions of the Telerik assembly in your web.config file as outlined here?

If the issue is still there, please submit the requested example via our support ticketing system. I will examine it in detail and do my best to provide more to-the-point explanation/fix.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark H
Top achievements
Rank 1
answered on 18 May 2009, 12:16 PM
I can confirm I do not have the version info in the web.config

I just went into VS2008 afresh and created a new project as a C# RadAjax Project selecting the defaults.

I created a sqldatasource and pointed it at Northwind

Then I created a radgrid and pointed at that datasource and got the same error

I've not changed anything in the references or web.config (which was created by the telerik wizard when the project was started)

Mark


0
Mark H
Top achievements
Rank 1
answered on 18 May 2009, 12:28 PM
BTW this is the same problem being manifested as I have reported elsewhere regarding the AjaxManager configuration - if I add the controls to the ajaxsettings in code all is well but if I let the config smart tag do it they cannot be parsed correctly (the same reason - incorrect markup - not using the prefix)

Mark
0
Mark H
Top achievements
Rank 1
answered on 18 May 2009, 05:12 PM
I have added a simple, sample project which illustrates the tag prefix issues and a screencast of reproducing it

Pls advise asap

Thanks,
Mark
0
Accepted
Sebastian
Telerik team
answered on 19 May 2009, 02:02 PM
Hello Mark,

I am reposting here the reply provided in the support thread you opened with regards to this subject:

I managed to reproduce the issue locally. Then I followed the steps from point 2 and 3 of this blog post and strangely enough I still encountered the same problem in your web application project.  Fortunately, after extensive testing I finally managed to designate the reason for the abnormality you observed under VS 2008. The reason for it appeared to be the missing fully qualified name of the Telerik.Web.UI assembly in the mapping which is part of your web.config file:

        <pages> 
            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
            </controls> 
        </pages> 

which should be modified as follows:

            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>  
            </controls> 

or, alternatively, remove this mapping and include the fully qualified in the Register directive for the Telerik assembly on the respective page, namely:

<%@ Register Assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 

Thus the Telerik controls designers should work properly and the tag prefixes should be applied without issues.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark H
Top achievements
Rank 1
answered on 19 May 2009, 02:30 PM
Wonderful - I hope this saves somebody else some time and pain!

There are posts out there that tell you to /take out/ the version-sepecific assembly references in web.config so beware!

Mark
0
Doug Beard
Top achievements
Rank 1
answered on 17 Mar 2010, 05:15 PM
Nope.
Nor the Designer.dll
Nor the GAC

I can find no solution to this problem.
0
Matthew Hardesty
Top achievements
Rank 1
answered on 24 Mar 2010, 09:36 PM
I am getting the exact same errors, and trying the exact same remedies, as original poster Mark H.

As soon as I set the binding to a LinqDatSource in any Radgrid in DESIGN view, I get the error.

Astonishingly, other pages with RadControls DO work, so it is not necessarily a DLL, registration issue.
Tags
Grid
Asked by
Mark H
Top achievements
Rank 1
Answers by
Mark H
Top achievements
Rank 1
Sebastian
Telerik team
Doug Beard
Top achievements
Rank 1
Matthew Hardesty
Top achievements
Rank 1
Share this question
or