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

Tool Tip - Code Behind

1 Answer 22 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
BSL Support
Top achievements
Rank 1
BSL Support asked on 21 Dec 2012, 07:03 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 25 Dec 2012, 07:17 AM
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.
Tags
Chart (Obsolete)
Asked by
BSL Support
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or