Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Tooltips for the labels in the legend

Last post 07-09-2008 2:33 by maheshpanse. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-03-2008 8:02

    Tooltips for the labels in the legend

    Hi,

     We wanted to show tooltips on the labels which are in the legend of an UltraChart. Is there any way out to do this.

     

    Thanks in advance

    Filed under: ,
    • Post Points: 20
  • 07-04-2008 4:24 In reply to

    Re: Tooltips for the labels in the legend

    Answer

    Here is some code you can try using to achieve your functionality. Unfortunately, you are constrained to using <ITEM_LABEL> for all tooltips in this example. If you want to request this as an official feature then please visit this page: http://devcenter.infragistics.com/protected/requestfeature.asp

    this.ultraChart1.Tooltips.FormatString = "<ITEM_LABEL>";

    this.ultraChart1.ChartDrawItem += new Infragistics.UltraChart.Shared.Events.ChartDrawItemEventHandler(ultraChart1_ChartDrawItem);

    ...void ultraChart1_ChartDrawItem(object sender, Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs e)

    {

    Box box = e.Primitive as Box;

    if (box == null)

    {

    return;

    }

    if (string.IsNullOrEmpty(box.Path))

    {

    return;

    }

    if (box.Path.EndsWith("Legend") == false)

    {

    return;

    }

    // this is the external legend box

    if (box.Column == -1)

    {

    return;

    }

    // this is the code for showing tooltips

    box.Caps = PCaps.HitTest | PCaps.Tooltip;

    }

    Best regards,
    Teodor Taushanov
    • Post Points: 20
  • 07-09-2008 2:33 In reply to

    Re: Tooltips for the labels in the legend

    Thanks Teodor.

    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems