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

Setting Rotatable and Resizeable to false is not working

8 Answers 174 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 03 Jun 2014, 12:05 AM
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.

8 Answers, 1 is accepted

Sort by
0
Gary
Top achievements
Rank 1
answered on 03 Jun 2014, 03:15 PM
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.
0
Daniel
Top achievements
Rank 1
answered on 03 Jun 2014, 06:59 PM
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
0
Hristo Germanov
Telerik team
answered on 04 Jun 2014, 07:49 PM
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!
 
0
Houssem
Top achievements
Rank 1
answered on 02 Sep 2015, 02:05 PM

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

0
Daniel
Telerik team
answered on 04 Sep 2015, 08:44 AM
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!
 
0
Stewart
Top achievements
Rank 1
answered on 19 Feb 2021, 07:08 PM

It appears that in the later versions of Kendo UI for jQuery (2019.1+) the rotate=false is ignored.  In the DoJo example below (from your documentation) I added the rotate=false property to the editable configuration.  The rotate left and right buttons still appear in the shape context menu and do function.  I don't want to disable editing completely.  I just want to disable rotation as rotating shapes for my application doesn't make sense (it's a workflow diagram).

https://dojo.telerik.com/umEkofIw

0
Georgi Denchev
Telerik team
answered on 23 Feb 2021, 10:05 AM

Hi Stewart,

Thank you for the provided dojo sample.

To modify the shape context menu you should use the shapeDefaults.editable.tools configuration.

I have updated the dojo with the added changes.

Let me know if you have any questions.

Best Regards,
Georgi Denchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Stewart
Top achievements
Rank 1
answered on 23 Feb 2021, 01:37 PM
Georgi, thanks for the updated Dojo example!  That is exactly what I needed!
Tags
Diagram
Asked by
Daniel
Top achievements
Rank 1
Answers by
Gary
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Hristo Germanov
Telerik team
Houssem
Top achievements
Rank 1
Daniel
Telerik team
Stewart
Top achievements
Rank 1
Georgi Denchev
Telerik team
Share this question
or