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

Unable to get the Hand Shape when mouse hover on Legend Item.

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chandu
Top achievements
Rank 1
Chandu asked on 16 Apr 2013, 11:03 AM
HI Team,

When click on the legend Selected item, I am able to Navigate to other page with respect/Selected ID, but I am unable to get the Hand Shape when mouse hover on the Items(Unable to apply the CSS/ Styles to legend).

I am using Rad chart in Asp.net application with C#.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 19 Apr 2013, 09:11 AM
Hi Chandu,

If you attach to the RadChart.Click event or if you just set the legend item's ActiveRegion.Url you should get a pointer cursor when you hover over a legend item. However, if you need to, you can explicitly set the mouse cursor by attaching to the RadChart.BeforeLayout event and executing the following code: 
void chart_BeforeLayout(object sender, EventArgs e)
{
 this.chart.Legend.Items[0].ActiveRegion.Url = "http://www.google.com";
 string attributes = "onmouseover=\"this.parentNode.parentNode.style.cursor = 'wait';\""
"onmouseout=\"this.parentNode.parentNode.style.cursor = '';\"";
 
 this.chart.Legend.Items[0].ActiveRegion.Attributes = attributes;
}

I have attached a sample project for reference.

I hope this helps.

Regards,
Petar Kirov
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
General Discussions
Asked by
Chandu
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or