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

2 posts, 0 answers
  1. Chandu
    Chandu avatar
    7 posts
    Member since:
    Mar 2013

    Posted 16 Apr 2013 Link to this post

    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.
  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 19 Apr 2013 Link to this post

    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.

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