Completed
Last Updated: 04 Jul 2018 11:32 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 23 May 2018 10:17
Category: ChartView
Type: Bug Report
1
FIX. RadChartView - setting the RadChartView.DataSource property to null should clear the series' DataSource as well
To reproduce:
            DataTable table = new DataTable();
            table.Columns.Add("Value", typeof(double));
            table.Columns.Add("Name", typeof(string));
            table.Rows.Add(1, "John");
            table.Rows.Add(3, "Adam");
            table.Rows.Add(5, "Peter");
            table.Rows.Add(12, "Sam");
            table.Rows.Add(6, "Paul");

            BarSeries lineSeria = new BarSeries();
            radChartView1.Series.Add(lineSeria);
            lineSeria.ValueMember = "Value";
            lineSeria.CategoryMember = "Name";

            this.radChartView1.DataSource = table;

        private void radButton1_Click(object sender, EventArgs e)
        { 
            this.radChartView1.DataSource = null; 
        }

The chart data will be still visible. It is necessary to set explicitly the DataSource of the series:
this.radChartView1.Series[0].DataSource = null;
0 comments