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

Pan raddiagram without using the keboard

1 Answer 71 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Davide
Top achievements
Rank 1
Davide asked on 29 May 2013, 04:45 PM
Hi, 

is there any way to pan a raddiagram without using the Ctrl button of the keyboard? My idea was to use one mouse button to pan and the other to select the raddiagramshape.

Thanks in advance


Davide

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 31 May 2013, 03:38 PM
Hello Davide,

If you want to pan a RadDiagram without holding a key, you can set the ActiveTool property to PanTool. But please note that this way you won't be able to select or manipulate RadDiagram's items. That's why if you don't want to lose the diagram's interactivity, you could handle the KeyDown and KeyUp events and in their handler if certain key is pressed to change the ActiveTool dynamically. You can check the implementation of this approach here.

Unfortunately you can't use one of the mouse buttons to pan and the other to select items, because even if you handle the RightMouseButtonDown event you should hold both mouse buttons to pan.

If you have more questions don't hesitate to contact us.

Regards, Stefan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Davide
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or