When exporting to JSON the configurations of a RadDiagram containing complex shapes, not all of the shapes information gets exported. For example, the URLs to the embedded in the shapes images are not exported.
When more than one shapes have HTML content containing image with the same path, only the image inside the first shape is rendered: https://www.screencast.com/t/mYJVfSOlP Code to reproduce: <telerik:RadDiagram runat="server" ID="RadDiagram1"> <LayoutSettings Enabled="true" Type="Tree" Subtype="Right" /> <ShapesCollection> <telerik:DiagramShape Id="s1" > <ContentSettings Html="<div>Shape 1</div><img src='sampleImage.png' />" /> </telerik:DiagramShape> <telerik:DiagramShape Id="s2" > <ContentSettings Html="<div>Shape 2</div><img src='sampleImage.png' />" /> </telerik:DiagramShape> </ShapesCollection> </telerik:RadDiagram>
make it easier to serialize and deserialze the diagram json string. When doing a Kendo Diagram.Save and resulting json string and be able to easily deserialize this into a C# Diagram object with DiagramShapes and DiagramsConnections E.g.: 1) Kendo API does a Diagram.Save() 2) Serialize this to JSON 3) send to server via AJAX callback 4) simply do serializer.Deserialize<RadDiagram>(myJson); Only step #4 is missing, writing my own deserializer now :( The same would be the other way around, creating a RADDiagram with shapes and connections in the back and then serialize this with one call and bind it to the Kendo API.
ContentSettings should have a property for CssClass: <ContentSettings Text="Some txt" CssClass="myLabel" /> or a Style property: <ContentSettings Text="Some txt" Style="font:bold 14px arial;color:red;" /> this would allow developers to style the textual elements in their diagrams.
Hello, The RadDiagram control has a lot of potential to be completely badass. I work in the engineering field and we'd like to use it to make diagrams of somewhat technical content. As such, the nodes (shapes) and connectors may contain several pieces of meta-data that is of use to the end user. The most natural way to present this information is in a tooltip similar to the ones used by other RadControls. Unfortunately there is no implementation for this, and jquery workarounds have only been met w/ partial success. Please consider adding tooltip for both shapes and connections in RadDiagram. thanks! matt
It will be possible to detect when a new diagram connection is created or modified.
Raise OnHover event for the RadDiagram shapes and connections, giving the developer the ability to access the object that is hovered (get reference to it).
It will be possible to group RadDiagram shapes via the API of the control so that you can transform them and resize them together.