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

Assigning DiagramConnection ContentSettings Text & DiagramShape Serverside Click?

5 Answers 81 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 05 Jan 2015, 11:33 PM
Dear Telerik Team, 

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

Sort by
0
Vessy
Telerik team
answered on 08 Jan 2015, 02:34 PM
Hello Andre,

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
0
John
Top achievements
Rank 1
answered on 23 Jun 2018, 02:00 PM
I have the same question. Being able to add text to a connection would be awesome.
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.
0
Rumen
Telerik team
answered on 27 Jun 2018, 01:14 PM
Hi John,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vandana
Top achievements
Rank 1
answered on 22 Oct 2019, 05:27 PM

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

0
Vessy
Telerik team
answered on 23 Oct 2019, 09:09 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Diagram
Asked by
Andre
Top achievements
Rank 1
Answers by
Vessy
Telerik team
John
Top achievements
Rank 1
Rumen
Telerik team
Vandana
Top achievements
Rank 1
Share this question
or