Error with RadChart1_ItemDataBound

Thread is closed for posting
4 posts, 0 answers
  1. Pete
    Pete avatar
    31 posts
    Member since:
    May 2008

    Posted 07 May 2008 Link to this post

    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.
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 08 May 2008 Link to this post

    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
  3. Pete
    Pete avatar
    31 posts
    Member since:
    May 2008

    Posted 08 May 2008 Link to this post

    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

  4. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 08 May 2008 Link to this post

    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
Back to Top