Q3 upgrade breaks X axis label, show item labels and tooltip code

2 posts, 0 answers
  1. Russell Smith
    Russell Smith avatar
    6 posts
    Member since:
    Oct 2009

    Posted 17 Feb 2010 Link to this post

    Hi, 

    The following code runs without any issues with the Q2 release but generates errors with the Q3 release:

                RadChart1.ItemsSource = graphList

                For y = 0 To xNames.Count - 1
                        RadChart1.DefaultView.ChartArea.AxisX.TickPoints(y).Label = xNames(y)
                Next y
                For y = 0 To graphList.Count - 1
                        RadChart1.DefaultView.ChartArea.DataSeries(y).Definition.ShowItemLabels = False
                        RadChart1.DefaultView.ChartArea.DataSeries(y).Definition.ShowItemToolTips = True
                Next y

    xNames array holds the X axis labels.

    After 'RadChart1.ItemsSource = graphList' runs with Q2 'VRadChart1.DefaultView.ChartArea.AxisX.TickPoint' has a collection of TickPoints.  With Q3 there is no collection.  The same is true for 'RadChart1.DefaultView.ChartArea.DataSeries'.  If I omit the code below 'VRadChart1.ItemsSource = graphList' with Q3 the chart shows as expected but obviously without the required axis labels etc.

    Any ideas about why the above code does not function with Q3?

    Thanks.

  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 22 Feb 2010 Link to this post

    Hello Russell,

    There are some changes we made to increase performance. Since this.RadChart1.DefaultView.ChartArea.AxisX.TickPoints is an observable collection, you can use the CollectionChanged event and update the values.


    Sincerely yours,
    Joshua
    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