Using the RadDiagram I would like to connect a number of shapes and to include meaning regarding the connection. Common sense tells me that the 2 lines below ought to accomplish this task and assign the "Connection Test" string to the connection. However, somehow that's not working out too well for me. If you could give me a pointer in the right direction to get this accomplished that would be much appreciated.
Dim connection = New DiagramConnection()
connection.ContentSettings.Text = "Connection Test"
Additionally, I was wondering if there is any way to execute something server side when the user clicks / double clicks on a DiagramShape?
Thank you for your assistance,
Andre.
5 Answers, 1 is accepted
I am afraid that currently the connection's add text option is temporarily removed. As you probably know, RadDiagram is in a Beta version it still goes through many changes. Please, excuse us for the inconveniences caused. For the time being you can use the Connection's label approach used in the RadDiagram's OverView demo.
Regarding the server side single/double click server-side handlers - I am afraid that RadDiagram does not provide such functionality. The control has a client-side Click event, as the handler to it can be attached through the composite ClientEvents property:
<
telerik:RadDiagram
ID
=
"diagram1"
runat
=
"server"
>
...
<
ClientEvents
OnClick
=
"clickHandler"
/>
</
telerik:RadDiagram
>
Regards,
Vessy
Telerik

Right now we have to use Visio and it would be more appropriate to be able to do simple flow charts in our web app and use Visio for our SDL.
The connection.ContentSettings.Text is a valid way for setting text to a connection as shown in the attached video.
Please, make sure that you are using the latest R2 2018 version of the Telerik ASP.NET AJAX suite to ensure that everything works as expected.
Best regards,
Rumen
Progress Telerik

Hi,
Is the functionality of editing text added back in the control, just like the diagram control of Kendo UI for jquery? We want a way for the user to click on the conntection and label it. Can you please provide a way of implementing this?
Thanks,
Vandana
Hi Andre,
Currently the shape/connection editing is available only in the Kendo UI diagram when the diagram is bound on the client (Kendo UI Diagram / Editing), but not in RadDiagram (which is a server-side wrapper of the widget and works both with client- and server-side binding).
As a possible option, you can consider using directly the Kendo UI Diagram widget in your application: http://demos.telerik.com/kendo-ui/diagram/editing
In addition, a feature request for implementing Editing functionality in RadDiagram has been already submitted in our Feedback portal but it is not very popular. You can vote on it in order to increase its priority here:
https://feedback.telerik.com/aspnet-ajax/1376149
Regards,
Vessy
Progress Telerik