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

Disable resize, delete, drag and edit of digram/shape/connector

2 Answers 351 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 11 Sep 2014, 03:16 PM
Hi,
I want to disable resize, delete, drag, rotate and edit of diagram/shape/connectors. I am using following code for stopping resize, edit and delete. But it is still getting resized, rotated and dragged. Please let me know how can I stop resize of shape and stop rotate and drag.

​<telerik:RadDiagram Resizable="false" Draggable="false" Enabled="false" Rotatable="false" ID="theDiagram" runat="server" EnableViewState="true" Width="890" Height="650">
<ClientEvents OnClick="diagram_onClick" />
<ShapeDefaultsSettings Editable="false" Resizable="false" Rotatable="false" Visual="visualTemplate">
</ShapeDefaultsSettings>
<LayoutSettings Enabled="false"></LayoutSettings>
</telerik:RadDiagram>

Thanks.

2 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 16 Sep 2014, 12:55 PM
Hi Sandeep,

The desired functionality cannot be achieved with the current implementation on the RadDiagram control, but we have already logged such improvement as a feature request, so you can vote on it here:
Add settings for disabling the interaction options of RadDiagram

Kind regards,
Vessy
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.

 
0
Nguyễn Duy Hải
Top achievements
Rank 1
answered on 28 Nov 2014, 04:04 AM
2 line code will be help you disable delete control...
//Java Script
 function LoadEvent() {
                var drg = getDiagram();
                drg.remove += notRemove;
            }
   function notRemove() {
                //Not Need Code right here
            }

  <ClientEvents OnLoad="LoadEvent" />
//
Tags
Diagram
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Nguyễn Duy Hải
Top achievements
Rank 1
Share this question
or