Display "#X" as DateTime in Tooltip

Thread is closed for posting
2 posts, 1 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 02 Dec 2010 Link to this post


    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?
  2. Answer
    Evgenia avatar
    1398 posts

    Posted 08 Dec 2010 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top