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

How to persist shape rotation?

1 Answer 112 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Elijah
Top achievements
Rank 1
Elijah asked on 04 Dec 2015, 10:41 PM

I'm trying to persist shape rotation. I've followed the demo at http://demos.telerik.com/kendo-ui/diagram/editing and can persist width, height, etc.

However even the demo at http://demos.telerik.com/kendo-ui/diagram/editing is not generating a server AJAX call to persist the rotation.

Even if the diagram was sending up the new rotation setting to the server, I'm unsure how to map the rotation data as the example at http://docs.telerik.com/kendo-ui/dataviz/diagram/editing#shape-model-fileds doesn't show how to map to rotation. Rotation is a complex type which has angle, x, and y.

Is persisting shape rotation and using the Shape Model Fields to retrieve it from the server-side data supported? If so, is there any chance you could show me a working example? The documentation seems to be lacking in this area.

Thank you very much!

- Elijah

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Dec 2015, 08:49 AM
Hello Elijah,

Binding the rotation is not currently supported. It is possible to implement it by using the change and itemRotate events - example.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Diagram
Asked by
Elijah
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or