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

Changing left mouse button behavior

2 Answers 55 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 07 Jun 2013, 03:41 AM
Is there any way to change the default behavior of the left mouse button when clicking on an empty area of a diagram?
By default it creates a selection rectangle but I would prefer if it defaulted to drag mode (the same as when you Ctrl-Left click).

Is this possible?

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Jun 2013, 06:55 AM
Hi Jason,

In order to implement your scenario you have to handle the KeyDown and KeyUp events of the RadDiagram and in their event handlers to change the ActiveTool property dynamically from PointerTool to PanTool. Here you can check a possible implementation of this approach.

Regards,
Stefan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jason
Top achievements
Rank 1
answered on 12 Jun 2013, 04:38 AM
Thanks Stefan, that solution worked well.
Tags
Diagram
Asked by
Jason
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Jason
Top achievements
Rank 1
Share this question
or