Issue in getting DataPoint values using ItemToolTipEventArgs

2 posts, 0 answers
  1. Anil Teja
    Anil Teja avatar
    3 posts
    Member since:
    Mar 2010

    Posted 05 May 2010 Link to this post

    Hello All,

    In one of my Charts, i'm using PieChart to show data for Spend Analytics in all the Financial Years available(say: 2008, 2009, 2010 as Segments of PieChart). On mouseover of any year segment of PieChart, the ToolTip should show a Series Chart (LineGraph) with data corresponding to Year of PieChart Segment. The code I used is as below:

    private void ChartItemToolTipOpening(ItemToolTip2D tooltip, ItemToolTipEventArgs args) 
    RadChart3.DefaultView.ChartLegend.Visibility = Visibility.Collapsed; 
    intYear = int.Parse(args.DataPoint.Label); 
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri("http://localhost:1251/DataSource1.aspx?source=two&year=" + args.DataPoint.Label)); 
    request.BeginGetResponse(new AsyncCallback(ReadCallbackOS_Quarterly), request); 
    tooltip.Content = quarterChart; 

    My issues is that, for the 1st Mouseover i'm unable to get correct details of the DataPoint, on which the Mouseover is done.

    Please help me ASAP, as it is an urgent bug we need to fix....

    Thanks in Advance.

    Thanks,
    Anil Teja
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 06 May 2010 Link to this post

    Hi Anil Teja,

    Please, find attached an example, showing this. It works correctly for me, give it a try and let us know if the issue is observed.

    Greetings,
    Ves
    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.
Back to Top