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

Error with RadChart1_ItemDataBound

3 Answers 63 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 07 May 2008, 03:39 PM
Hi, I am getting the error "The type name 'Charting' does not exist in the type ..." when I try to build this solution with your example. I am using the latest version of Telerik (2008 Quarter1). Can you tell me how to resolve this ?

Thanks a lot,

Pete Walker.

3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 08 May 2008, 08:01 AM
Hi Pete,

Have you referenced Telerik.Charting.dll in your website?

Regards,
Vladimir Milev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Pete
Top achievements
Rank 1
answered on 08 May 2008, 08:20 AM
Hi Vladimir, yes I've referenced both the Telerik.Charting.DLL and the Telerik.Web.UI DLL in the project, in my ASPX page I have the declarations set as 

<%

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

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %>

The part of the code where it's complaining is the Telerik.Charting.ChartItemDataBound

protected void RadChart1_ItemDataBound(object sender, Telerik.Charting.ChartItemDataBoundEventArgs e)

{

if (e.SeriesItem.YValue > 30)
{
e.SeriesItem.ActiveRegion.Tooltip =
"Attention! Temperature too high! " + '\n';
}
else if (e.SeriesItem.YValue < 10)
{
e.SeriesItem.ActiveRegion.Tooltip =
"Attention! Temperature too low! " + '\n';
}
e.SeriesItem.ActiveRegion.Tooltip += ((
DataRowView)e.DataItem)["Measurement"].ToString() + ": Temperature: " + e.SeriesItem.YValue;
}

I hope this helps, this is the example of your web site that tells me how to use the Tooltips?

Cheers,

Pete

0
Ves
Telerik team
answered on 08 May 2008, 02:07 PM
Hello Pete,

Please, find attached a standalone website with the page in question, which works as expected. Give it a try and let us know how it goes.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Pete
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Pete
Top achievements
Rank 1
Ves
Telerik team
Share this question
or