Completed
Last Updated: 25 Jun 2015 13:17 by ADMIN
ADMIN
Dimitar
Created on: 12 May 2015 11:51
Category: ChartView
Type: Bug Report
0
FIX. RadChartView - NullReferenceException when the trackball is enabled and series are removed and added back.
To reproduce:
- Enable the Trackball.
- Add 2 series to the chart.
- Remove and add back the first one.
- Move the mouse over the chart.

Workaround:
class MyChartTrackballController : ChartTrackballController
{
    protected override string GetPointText(DataPoint point)
    {
        if (point.Presenter != null)
        {
            return base.GetPointText(point);
        }
        else
        {
            CategoricalDataPoint p = point as CategoricalDataPoint;
            if (p!= null)
            {
                return p.Value.ToString();
            }
        }
        return "";
    }
} 
0 comments