Assigning DiagramConnection ContentSettings Text & DiagramShape Serverside Click?

6 posts, 0 answers
  1. Andre
    Andre avatar
    1 posts
    Member since:
    Jan 2014

    Posted 05 Jan 2015 Link to this post

    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, 

  2. Vessy
    Vessy avatar
    2093 posts

    Posted 08 Jan 2015 Link to this post

    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" />

  3. John
    John avatar
    5 posts
    Member since:
    Aug 2010

    Posted 23 Jun 2018 in reply to Vessy Link to this post

    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.
  4. Rumen
    Rumen avatar
    14166 posts

    Posted 27 Jun 2018 Link to this post

    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,
    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.
  5. Vandana
    Vandana avatar
    3 posts
    Member since:
    May 2018

    Posted 22 Oct 2019 in reply to Rumen Link to this post


    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?




  6. Vessy
    Vessy avatar
    2093 posts

    Posted 23 Oct 2019 Link to this post

    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:

    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:

    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.
Back to Top