Pan raddiagram without using the keboard

2 posts, 0 answers
  1. Davide
    Davide avatar
    17 posts
    Member since:
    Mar 2013

    Posted 29 May 2013 Link to this post


    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

  2. Stefan
    Stefan avatar
    89 posts

    Posted 31 May 2013 Link to this post

    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

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top