I create chart as follows:
var barModel = new BarSeries
{
ValueMember = "Model",
CategoryMember = "N"
};
radChartViewGss.Series.Add(_barModel);
var barWellModel = new BarSeries
{
ValueMember = "WellModel",
CategoryMember = "N"
};
radChartViewGss.Series.Add(barWellModel);
...creating and filling a table (DataTable gssTable)
radChartViewGss.DataSource = gssTable;
... and show table
radGridViewGss.DataSource = gssTable;
Everything works great.
Then I want to change the data:
radChartViewGss.DataSource = null;
radGridViewGss.DataSource = null;
gssTable.BeginLoadData();
gssTable.Rows.Clear();
... filling a table (gssTable)
gssTable.EndLoadData();
gssTable.AcceptChanges();
During the data modification process, the radGridView is not updated, but radChartView constantly tries to update itself. As a result, everything works very slowly.
Why two similar component behave differently when data source disconnected?
I know how programmatically I can disable this behavior of the chart. But this should be done automatically!!! If there is no data source, the chart is not drawn