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

Display "#X" as DateTime in Tooltip

1 Answer 44 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 03 Dec 2010, 12:56 AM
Hi,

I would like this functionality:

series.ActiveRegionToolTip = String.Format("{0}: {1} ({2})", series.Name, "#Y", Convert.ToDateTime("#X") );

#X is a string representation of a DateTime as OADate. I am unable to convert it here as it is still just the string literal "#X" until run time.

What is the correct way of doing this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 08 Dec 2010, 07:51 AM
Hello Sean,

To be able to set tooltip for RadChart as you want you should subscribe to the ItemDataBound event of RadChart and set ActiveRegion.Tooltip property in the event's body. This way you will be able to handle the XValue of each item.

Kind regards,
Evgenia
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Sean
Top achievements
Rank 2
Answers by
Evgenia
Telerik team
Share this question
or