Tooltip on series name

Thread is closed for posting
3 posts, 1 answers
  1. Javier
    Javier avatar
    35 posts
    Member since:
    Aug 2011

    Posted 28 Feb 2012 Link to this post

    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. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 29 Feb 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Javier
    Javier avatar
    35 posts
    Member since:
    Aug 2011

    Posted 29 Feb 2012 Link to this post

    Worked perfectly, thanks
Back to Top