RadDiagram disabled but with zoom activated

2 posts, 0 answers
  1. Maite
    Maite avatar
    33 posts
    Member since:
    Mar 2014

    Posted 24 Nov 2014 Link to this post


    I have two problems but they are the same:

    In my scenario I have a raddiagram and, in a moment of my application, I have show the diagram and to do zoom. If I put Diagram.IsEnabled = false, zoom doesn't works. In the other way, I put other attributes (resizing, draggin,...) at false, the zoom works correctly, but Diagram obtains the focus (I put Focusable = false) and I don't want this case, because I need to have the focus in another place of the window.

    Exists the other way for to do this scenario?

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1165 posts

    Posted 27 Nov 2014 Link to this post

    Hi Maite,

    You can try setting the Focusable to false to the RadDiagram as well as to all RadDiagramShapes, RadDiagramContainerShapes and RadDiagramConnections (maybe in Style). This will allow you to click on the diagram but the focus will remain in the control that previously had it. You will be able to zoom the diagram using the scroll of the mouse and still the focus will be in the control that previously had it.

    You can try the following snippet:

    <Grid >
        <telerik:RadDiagram x:Name="xDiagram"
            <telerik:RadDiagramShape Content="shape" Focusable="False"/>
        <TextBox Width="90"
    Please give it a try and let us know if it works for you.

    Pavel R. Pavlov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top