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

'Telerik.Web.UI.RadChart' is not defined

4 Answers 205 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mariano
Top achievements
Rank 1
mariano asked on 06 Oct 2010, 08:43 PM
Hello, I started with the AJAX evaluation download and was able to get several controls running on my Windows 2003 server.
It has .NET frameworks 1.1, 2.0, 3.5 installed.  Then I decided to integrate the Silverlight RadChart to my aspx page.
I applied VS2008 SP1, Silverlight SDK, and installed the Silverlight trial download, which prompted me to install Silverlight 4 plugin.
I was able to get the Silverlight Radchart demo to appear in my aspx page, but could not see where the data for the bars came from.
the demo worked but I saw no component with ID=RadChart1  The chart just ran out of ~\Images\RadChart.xap
I wanted to manually bind the chart data to a sqldatasource so I looked for a sample project.  So I found a telerik sample that implements:   Namespace Telerik.Chart.Examples.DataBinding.Automatic

I added references to Telerik.Web.UI and Telerik.Web.Design dlls to my project (from the Bin35 directory of the Telerik downloads)

I added the following imports to the project.
Imports

 

Telerik.Charting

 

Imports

 

Telerik.Web.UI

 

Imports

 

Telerik.Web.Design

But I get this error:  Type 'Telerik.Web.UI.RadChart' is not defined.
I used gacutil to look in the GAC and saw that no Telerik dll is registered in the Framework 1.1 GAC.
web.config contains:

 

<

 

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>

 

 

 

Any help would be very appreciated.

4 Answers, 1 is accepted

Sort by
0
mariano
Top achievements
Rank 1
answered on 06 Oct 2010, 09:42 PM
I found that the Telerik dlls are in the GAC.
I can see them in C:\WINDOWS\assembly
There was an old version of the Telerik.Web.UI dll so I replaced it with the current version.
I specified the version info in web.config and re-added the references to the project.

<

 

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

 

</

 

controls>

 


Unfortuantely the problem persists.  No change.
0
Ves
Telerik team
answered on 11 Oct 2010, 09:09 AM
Hi Mariano,

Just to be sure we are on the same track. You need to use RadChart for Silverlight in an ASP.NET web site -- is that correct? In this case, you would not need Telerik.Web.UI.dll  and you would not need to import Telerik.Web.UI and Telerik.Charting namespaces as long as RadChart for Silverlight is concerned. You might need the assembly and Telerik.Web.UI namespace if other controls from the ASP.NET AJAX suite are involved.

In order to use RadChart for Silverlight, you need to download RadControls for Silverlight. Then I would recommend creating a separate Silverlight project, using RadChart for Silverlight -- this might be a really simple app -- just to get the chart running. You can check our online help and live examples.

Once you feel confident of configuring and running RadChart for Silverlight, you can check this blog post, dedicated to integrating it in ASP.NET web site. The same approach is used in this example . The chart is populated in the Silverlight application, this is why you have not seen this in the page code/markup. Note, that the example's description contains a link to a complete, stand-alone solution, which you can download and run outside of the quick start framework, so that you can see all the implementation details.


Best regards,
Ves
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
mariano
Top achievements
Rank 1
answered on 12 Oct 2010, 02:48 PM
Thanks Ves and Jennifer
I will try your suggestions and let you know how it goes.
Mariano
0
mariano
Top achievements
Rank 1
answered on 25 Oct 2010, 02:41 PM
Telerik Help Team

I submitted ticket 359999 on Friday and I have not heard anything.

Couls someone please acknowledge its assignment and give me an estimate for resolution?

Thanks,
Mariano
Tags
General Discussions
Asked by
mariano
Top achievements
Rank 1
Answers by
mariano
Top achievements
Rank 1
Ves
Telerik team
Share this question
or