Completed
Last Updated: 09 Jun 2017 09:13 by Girish
ADMIN
Slav
Created on: 14 Jul 2014 15:28
Category: Diagram
Type: Feature Request
12
Add settings for disabling the interaction options of RadDiagram
It will be possible to disable the various actions that the diagram control currently supports. You can find them listed in the following help article: http://www.telerik.com/help/aspnet-ajax/diagram-rich-layout-interaction.html
13 comments
Girish
Posted on: 09 Jun 2017 09:13
We need to restrict user from resizing as by resizing the diagram is getting spoiled and saved
no control for user actions for selected shapes
OfficeHeart
Posted on: 16 Feb 2016 15:23
This is my solution to remove the connector Auto for all shapes:
        <telerik:RadDiagram ID="myDiagram" runat="server">
            <ShapeDefaultsSettings>
                <ConnectorsCollection>
                    <telerik:DiagramShapeConnector Name="Bottom" />
                    <telerik:DiagramShapeConnector Name="Left" />
                    <telerik:DiagramShapeConnector Name="Right" />
                    <telerik:DiagramShapeConnector Name="Top" />
                </ConnectorsCollection>
            </ShapeDefaultsSettings>
        </telerik:RadDiagram>
AIK KUAN
Posted on: 14 May 2015 09:03
I have use this for a floor plan, it look good. 
If I select one of the shape, how can I read the shape ID, can it be done?
Chance
Posted on: 05 May 2015 20:43
How about disabling editable attributes for individual shapes instead of entire diagram?
matt
Posted on: 01 Apr 2015 14:04
most excellent. thank you!
ADMIN
Niko
Posted on: 13 Mar 2015 14:01
With the addition of the Pannable property in Q1.2015 release, it is possible to completely remove any form of interactivity with the diagram. Check the following code out:
			<telerik:RadDiagram ID="disabledDiagram" runat="server" Width="400" Height="400" Pannable="false" Selectable="false" Editable="false" ZoomRate="1" ZoomMax="1">
				<LayoutSettings Enabled="true" Type="Tree" />
				<ShapesCollection>
					<telerik:DiagramShape Id="s1">
						<ContentSettings Text="Shape 1" />
					</telerik:DiagramShape>
					<telerik:DiagramShape Id="s2">
						<ContentSettings Text="Shape 2" />
					</telerik:DiagramShape>
					<telerik:DiagramShape Id="s3">
						<ContentSettings Text="Shape 3" />
					</telerik:DiagramShape>
				</ShapesCollection>
				<ConnectionsCollection>
					<telerik:DiagramConnection>
						<FromSettings ShapeId="s1" />
						<ToSettings ShapeId="s2" />
					</telerik:DiagramConnection>
					<telerik:DiagramConnection>
						<FromSettings ShapeId="s1" />
						<ToSettings ShapeId="s3" />
					</telerik:DiagramConnection>
				</ConnectionsCollection>
			</telerik:RadDiagram>

Notice the Pannable, Selectable, Editable, ZoomRate and ZoomMax properties set in the Diagram declaration. This setup would result in a read-only diagram as far as interactivity goes.

Regards,
Niko
Timothy
Posted on: 11 Mar 2015 23:26
That did the trick. Thanks!
Igor
Posted on: 11 Mar 2015 10:11
Hi all
Try this , it seem like i found the way to prevent resize & rotate :

    	<telerik:RadDiagram ID="theDiagram" runat="server" Width="1000" Height="800" Skin="MetroTouch" >                
               <ShapesCollection>
                    <telerik:DiagramShape Id="Rule" Type="rectangle" Editable="false" X="230" Y="70" Width="100" Height="40" >
                         <FillSettings Color="#fcdcdc" />                         
                         <ContentSettings Text="Rule" Color="#010101" />     
                        <StrokeSettings Color="#000000" DashType="Solid" Width="2" />                                        
                    </telerik:DiagramShape>
                    <telerik:DiagramShape Id="Condition1" Type="circle" Editable="false" X="70" Y="270">
                         <FillSettings Color="#e26c60" />
                         <ContentSettings Text="Condition-1" Color="#fff" />
                    </telerik:DiagramShape>
                    <telerik:DiagramShape Id="Condition2" Type="circle" Editable="false" X="390" Y="270">
                         <FillSettings Color="#e26c60" />
                         <ContentSettings Text="Condition-2" Color="#fff" />
                    </telerik:DiagramShape>
					<telerik:DiagramShape Id="Conditions" Path="M37.50,0.50 L74.50,28.76 L60.35,74.50 L14.65,74.50 L0.50,28.76 z" X="230" Y="170">
                         <ContentSettings Text="Conditions" />
                    </telerik:DiagramShape>
               </ShapesCollection>
                <ConnectionsCollection>
                   <telerik:DiagramConnection>
                        <FromSettings ShapeId="Rule" />
                        <ToSettings ShapeId="Conditions" />                      
                   </telerik:DiagramConnection>
                   <telerik:DiagramConnection>
                        <FromSettings ShapeId="Conditions" />
                        <ToSettings ShapeId="Condition1" />                      
                   </telerik:DiagramConnection>
                   <telerik:DiagramConnection>
                        <FromSettings ShapeId="Conditions" />
                        <ToSettings ShapeId="Condition2" />                      
                   </telerik:DiagramConnection>
                </ConnectionsCollection>
                <EditableSettings Resize="false" Rotate="false"> </EditableSettings>                
          </telerik:RadDiagram>
Timothy
Posted on: 08 Feb 2015 08:48
I need the ability to disable these editable attributes as well. Resize and Rotate specifically. Any update?
Igor
Posted on: 28 Oct 2014 20:10
Is this feature is available in the last release?
Walther Siksma
Posted on: 22 Sep 2014 13:37
Making shapes not resizable/draggable would be very useful so that I can use RadDiagram to render Sankey diagrams. The properties are there now, but do not seem to have any effect.
Also It implementing a 'visible' property on shapes would be very practical: you create all shapes beforehand and switch them on and off according to certain conditions. (now you have to remove them from the shapes collection to achieve this).
thnx
Walther
Sandeep
Posted on: 17 Sep 2014 14:17
Hi,
I want to disable resize, delete, drag and edit functionalities of diagram/shape/connector.
In other way, I need a kind of read only diagram. There would not be interaction with end user or end user should not change the structure of the diagram or data in any way. But user should be able to click on a link in the data if there is any.

Thanks,
Sandeep
matt
Posted on: 19 Aug 2014 15:19
this absolutely has to be implemented -- everywhere in life we have diagrams that are not for manipulation. if we're to use RadDiagram as a replacement for static images or HTML hacks, then making it read-only is a basic, missing feature.

as for my customers, we're using RadDiagram to produce a rich diagram representing facility pipleline systems and use the Connection stroke properties to give visual indicators of real-time flow rates and blockage statuses (green pipes/connections, red pipes/connections, etc). Users can hover or click the Connections (using a hack) to pull up additional info. But my users are confused because they can accidentally enter text-entry mode, or drag Shapes or text labels around... 

once we get this, and IDs for Connections, this will be a tool to be reckoned with!

thanks!
matt