Setting Rotatable and Resizeable to false is not working

6 posts, 0 answers
  1. Daniel
    Daniel avatar
    3 posts
    Member since:
    Oct 2012

    Posted 02 Jun 2014 Link to this post

    I'm having multiple issues with this control. It was less surprising when it was still considered to be in beta, but things have gotten worse. I have a simple trykendo demo here:

    http://trykendoui.telerik.com/uZeN

    The rotatable and resizable are both set to false, and yet I can still rotate and resize shapes. Please let me know why these fields exist if they are ignored.
  2. Gary
    Gary avatar
    62 posts
    Member since:
    Sep 2013

    Posted 03 Jun 2014 in reply to Daniel Link to this post

    Having the same problem here.

    Daniel, as a workaround, I found that if you set the editable property to false on the diagram object itself (not within the shapeDefaults property) then the rotate and resize handles are removed.

    Now if only I could find a way to disable the connector handles, I would have a display-only diagram, which is what I want.
  3. Kendo UI is VS 2017 Ready
  4. Daniel
    Daniel avatar
    3 posts
    Member since:
    Oct 2012

    Posted 03 Jun 2014 Link to this post

    Gary,

    It looks like the documentation is just wrong. You can add an "editable" configuration object with properties "rotate" and "resize" and set those to false to get it to work, as shown here:

    http://trykendoui.telerik.com/uZeN/6
  5. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 04 Jun 2014 Link to this post

    Hello Gary,

    The Daniel is right. We will update the documentation for the end of the week.

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Houssem
    Houssem avatar
    2 posts
    Member since:
    May 2015

    Posted 02 Sep 2015 Link to this post

    What about drag and remove? They are still enabled when set to false​. I ​need to create a read-only diagram.

  7. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 04 Sep 2015 Link to this post

    Hello,

    This is supported in the latest versions and should work when setting editable to false. You can also control whether dragging and removing elements should be allowed using editable.drag and editable.remove options.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready