Pan without Ctrl being pressed?

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    30 posts
    Member since:
    Oct 2012

    Posted 10 Dec 2012 Link to this post

    IsPanEnabled="True" enables panning, but you need to hold down the Ctrl key. Is it possible to change this to the following?

    Panning: Simple click
    Selecting: Shift+click
  2. Stefan
    Stefan avatar
    89 posts

    Posted 12 Dec 2012 Link to this post

    Hi Kristoffer,

    If you want to pan without holding the Ctrl key you should make the RadDiagram's ActiveTool to be the PanTool.

    About the selection - if you want the selection to be activated when the Shift key is hold you should handle the RadDiagram's KeyDown event and to check if the hold key is Shift to activate the RadDiagram's PointerTool. Analogically - if you want to continue panning without the Ctrl key after the Shift is released you should handle the KeyUp event and implement the same logic to return the ActiveTool to PanTool.

    You can check the attached project to see the approach I described.
    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top