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

3 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    2 posts
    Member since:
    Aug 2014

    Posted 11 Sep 2014 Link to this post

    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">
    <LayoutSettings Enabled="false"></LayoutSettings>

  2. Vessy
    Vessy avatar
    1641 posts

    Posted 16 Sep 2014 Link to this post

    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,

    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. Nguyễn Duy Hải
    Nguyễn Duy Hải avatar
    1 posts
    Member since:
    Oct 2009

    Posted 27 Nov 2014 in reply to Vessy Link to this post

    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" />
Back to Top