Hello,
This is related to https://www.telerik.com/forums/samplingunit-of-none-does-not-disable-sampling, but I think a bit more specific of an issue.
I enable Data Sampling with a DateTime-based series by applying a ChartDataSourceStyle. Once I do this, sampling is always applied, even if my threshold allows all data points to be shown - it still goes through to sampling process.
I tried setting the ChartDataSourceStyle to null, expecting sampling to be disabled, but instead the previously-used sampling settings remained applied. For instance, I may have my sampling set to a 5-minute interval, then when I zoom in to a small enough range to set the ChartDataSourceStyle to null, and my data remains sampled at 5-minute intervals.
When profiling my application, it appears that ChartSeriesDescriptor.OnChartDataSourceStyleChanged() ignores a change to a null style, and leaves the series descriptor bindings unchanged. However, ChartSeriesDescriptor.BindItemsSource() does include a check for a null style, and if so binds directly to the ChartSeries rather than the ChartDataSource. Should the null check in ChartSeriesDescriptor.OnChartDataSourceStyleChanged() be removed?
Thanks,
Brandon