it is super weird. I spend over 4 hours
my project has very simple data table :
date,quantitysold,AverageQuantity, in datatime, int, int
date will be X
quantitysold, averageQuantity, will be Y1 and Y2
first, user will get the product ID table into gridview and when choosing the product to show the chart,
the radchartview should popup/update the chart based on the product PID
I could make it work when I click the first product ID, erverything is ok, but more I click the datagrid to view the product sales data , the chartview becomes more smaller, please refer to the screenshots
everytime I click the data, I first make series.clear(), and tested area clear(), chart refresh, update.
private void radGridView_197_data_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
// if (gridview_197_firstClick)
....more other code here ,
CartesianArea area = this.radChartView_197_chart.GetArea<CartesianArea>();
area.ShowGrid = true;
CartesianGrid grid = area.GetGrid<CartesianGrid>();
grid.DrawHorizontalStripes = true;
...............more code here to update the table which is every time different because product id changed.
this.radChartView_197_chart.DataSource = table;
there is no zoom related setup , I tried almost everything, but there is very limited source online to bind the new data source.
please let me know how to do this.