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

Tooltip on series name

2 Answers 45 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 28 Feb 2012, 03:20 PM
I've created a chart with two series, almost each item is clickable including the series names on the right.  I would like to add a tooltip to the name itself, not the series items.  So that the use knows the expected behavior when clicked.

I've added the tool tip in the markup as such.

<telerik:ChartSeries Name="Pending Reviews" Type="StackedBar" ActiveRegionToolTip="Click to see pending reviews" DataYColumn="Modality" DataXColumn="Pending Reviews">

That doesn't seem to work.  

Any suggestions?

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 29 Feb 2012, 12:24 PM
Hi,

You need to set the tooltip during the BeforeLayout phase. Code below should help:
void radChart1_BeforeLayout(object sender, EventArgs e)
{
 foreach (LabelItem legendItem in this.radChart1.Legend.Items)
 {
   legendItem.ActiveRegion.Tooltip = "Click!";
 }
}

Greetings,
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.
0
Javier
Top achievements
Rank 1
answered on 29 Feb 2012, 01:49 PM
Worked perfectly, thanks
Tags
Chart (Obsolete)
Asked by
Javier
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Javier
Top achievements
Rank 1
Share this question
or