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

ChartPanAndZoomBehavior.PanMode

1 Answer 108 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Lutz
Top achievements
Rank 1
Lutz asked on 04 Apr 2013, 02:24 PM
In the documentation for ChartPanAndZoomBehavior.PanMode Property  it reads:
Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a pan action.

But what is a 'pan action'? I can zoom using scrollbars or mouse window and I can pan using the scrollbars even if PanMode is set to 'None'. So which kind of interaction is enabled/disabled when I set the property PanMode?

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 09 Apr 2013, 11:25 AM
Hi Lutz,

The PanMode property is useful in scenarios when you want want to have a fixed zoom and allow the user only to scroll. This can be achieved by setting ChartPanAndZoomBehavior.ZoomMode to None and setting RadCartesianChart.Zoom to e.g. "2,1" -> chart will show the full Y axis range and only 1/2 of the X axis range.

On the other hand, if you want to leave the ability to zoom-in and zoom-out to the user, you can leave PanMode to None and set ZoomMode to Horizontal, Vertical or Both, depending on your scenario.

If you have any other questions, I'll be glad to help.
 
Greetings,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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