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

RadDiagram disabled but with zoom activated

1 Answer 114 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Maite
Top achievements
Rank 1
Maite asked on 24 Nov 2014, 04:06 PM
Hi!

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?

Maite.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 27 Nov 2014, 10:56 AM
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"
                        IsPanEnabled="False"
                        IsResizingEnabled="False"
                        Focusable="False">
        <telerik:RadDiagramShape Content="shape" Focusable="False"/>
    </telerik:RadDiagram>
     
    <TextBox Width="90"
             Height="30"
             HorizontalAlignment="Center"
             VerticalAlignment="Bottom"/>
</Grid>
Please give it a try and let us know if it works for you.

Regards,
Pavel R. Pavlov
Telerik
 

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.

 
Tags
Diagram
Asked by
Maite
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or