Tool Tip - Code Behind

Thread is closed for posting
2 posts, 1 answers
  1. Murali
    Murali avatar
    16 posts
    Member since:
    Apr 2009

    Posted 21 Dec 2012 Link to this post

    i am creating a rad chart control in codebehind and adding it to the page. i now need to add tooltip to the points.
    I assign the data ycolumn to the chart series. so i dont have active regions defined hence no tool tip.
    can anyone point me in the right direction. any help is appreciated. thank you.

    Murali.
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 25 Dec 2012 Link to this post

    Hi Murali,

    I think that you can attach a handler to the ItemDataBound event of the RadChart and set the tool tips there:
    void RadChart1_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
    {
     e.SeriesItem.ActiveRegion.Tooltip = e.SeriesItem.YValue.ToString();
    }

    All the best,
    Petar Marchev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top