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

Tooltip formatting problem

5 Answers 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Walter Mesquita
Top achievements
Rank 1
Walter Mesquita asked on 22 Feb 2010, 04:29 PM
Hi,
I am working on a chart that has an optional drill-down feature. "Optional" as in some items will have the drill-down enabled and others will not.

I want to customize the tooltips so that the items with the drill-down display an extra message like "Click to view [drill-down chart's title]...". My series' ItemToolTipFormat is "#XCAT (#Y)".

I have implemented the ItemDataBound event so that the "extra" tooltip message gets appended to the default tooltip for the items with the drill-down option.

Everything seems to work fine. Except that when the "default" tooltip contains a "0", it gets replaced by something that I have not yet identified. For example, if the default tooltip were "Task1 (140)", and I wanted to append "Click to view 'Top 10 operators for Task1'", the final tooltip would display "Task1 (1414). Click to view  'Top 10 operators for Task1'". The "0" in "Task1 (140)" was replaced by 14...

Thanks in advance,
Walter

5 Answers, 1 is accepted

Sort by
0
Ramin Aminloo
Top achievements
Rank 1
answered on 25 Feb 2010, 01:27 AM
Hi

I am having Tooltip problem too:
                DataPoint dp = new DataPoint();
               
                dp.YValue = item.Total;
                string tip = item.Month.ToString() + ", " + item.Year.ToString();
                dp.Tooltip = tip;

It should show "January, 2010" but instead get the YValue and Add it to the end. "January, 2026" if value is 6.

or

"January, 2009" it will show "January, 2069"

0
Vladimir Milev
Telerik team
answered on 25 Feb 2010, 10:59 AM
Hi Martin and Walter,

Both of your cases sound very strange. We are unable to reproduce such erroneous behavior locally. Can you please send us a small runnable application which we can debug for you? Thanks.

All the best,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Walter Mesquita
Top achievements
Rank 1
answered on 25 Feb 2010, 03:33 PM
Hi Vladimir,
thanks for your reply. I managed to work around the problem by binding the Tooltip to a property of my "data item" class.

As requested, I built a sample solution that reproduces the error. How do I send it to you?

Best regards,
Walter
0
Vladimir Milev
Telerik team
answered on 02 Mar 2010, 11:39 AM
Hi Walter Mesquita,

You can put it on a public site or attach it inside a bug report.

Greetings,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
loic
Top achievements
Rank 1
answered on 02 May 2011, 09:53 AM
Hi, I have exactly the same issue.

I guess that bug is fired by a margin between the ItemToolTipFormat I am setting, and the Y default value.

Did you find a solution for this bug?

Or, how to disable the ToolTip Default value (binded to AxisY)?


Regards
Tags
Chart
Asked by
Walter Mesquita
Top achievements
Rank 1
Answers by
Ramin Aminloo
Top achievements
Rank 1
Vladimir Milev
Telerik team
Walter Mesquita
Top achievements
Rank 1
loic
Top achievements
Rank 1
Share this question
or