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
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.
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
The Daniel is right. We will update the documentation for the end of the week.
Regards,
Hristo Germanov
Telerik
What about drag and remove? They are still enabled when set to false​. I ​need to create a read-only diagram.
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
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
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/.