This is a migrated thread and some comments may be shown as answers.

Pan and Zoom Bars not in sync

3 Answers 92 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 08 Mar 2013, 09:29 PM
If the ChartPanAndZoomBehavior is changed after the chart has been constructed then the Pan and Zoom bars on the chart are not updated to reflect the new behavior.

For example, the chart is constructed with a pan and zoom behavior set to allow both panning and zooming. Later, based on user interaction, the original pan and zoom behavior is removed and a new pan and zoom behavior that only allows panning is added. The user can no longer use the mouse to draw a rectangle to zoom the chart but the pan and zoom bars still have handles that let the user zoom.

Is there a way to get the pan and zoom bars to update to match the pan and zoom behavior?

Terry

3 Answers, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 13 Mar 2013, 03:13 PM
Hi Terry,

Thanks for reporting this problem. I have managed to reproduce it. To workaround it, simply change the PanMode and ZoomMode of the existing behavior, instead of removing it and adding a new one.

I have updated your Telerik points.
 

Regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Terry
Top achievements
Rank 1
answered on 13 Mar 2013, 04:24 PM
Hi Petar,

Thanks for your response. There is still an issue with the display when you change the ZoomMode. When ZoomMode is set from None to Both and the vertical bar reaches to the very top and the horizontal bar reaches to the very right then the zoom handles are missing at the top and right. See attached picture.

If I resize the window then the bars are properly drawn. Is there a way in code to get the bars to redraw?

On a related note I've found that changing the PanZoomBarStyle on an axis after the chart has been constructed doesn't take effect. The style remains as was set when the chart was constructed.

What I'd like to do on a graph showing live data is to initially have a chart Zoom and PanOffset set to show only a portion of the latest underlying live data but not let the user pan or zoom around. Then when the user pauses the display of live data the user would be able to fully pan and zoom around all the live data currently available in the chart.

Terry
0
Petar Kirov
Telerik team
answered on 18 Mar 2013, 04:56 PM
Hi Tery,

Thanks for the feedback. I have notified our development team about these issues.

We are sorry for the inconvenience caused.
 
All the best,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Terry
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Terry
Top achievements
Rank 1
Share this question
or