I need to use the telerik chart control for scrolling and zooming, available in the assembly Telerik.Windows.Controls.Charting v2.0.50727 and after a lot of forum search and research, I found no solution to the issue where the automatic handling of scrolling and zooming is not really supported by this verion of telerik.
I have set the following zooming and scrolling in the code:
ZoomScrollSettings
zoomScrollSettings = new ZoomScrollSettings();
zoomScrollSettings.MinZoomRange = .01;
zoomScrollSettings.RangeStart = 0;
zoomScrollSettings.RangeEnd = Convert.ToDouble(this.NumberOfXAxisPointsToDisplay / Convert.ToDouble(maxDataPoints));
zoomScrollSettings.ScrollMode = ScrollMode.ScrollOnly;
this.chrtMain.SamplingSettings.SamplingThreshold = this.NumberOfXAxisPointsToDisplay * 100;
this.customChartArea.ZoomScrollSettingsX = zoomScrollSettings;
this.customChartArea.ZoomScrollSettingsX.PropertyChanged += new PropertyChangedEventHandler(ZoomScrollSettingsX_PropertyChanged);
Also, I have used the databinding feature by providing the datapoints collection as the itemsource value as follows:
this.chrtMain.ItemsSource = _AllDataPoints;
where _AllDataPoints is a List of List of custom data point class.
Am I missing out anything in the above settings or this is not really supported?
Thanks,
Gautam