Assigning DiagramConnection ContentSettings Text & DiagramShape Serverside Click?

2 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, 

    Andre. 
  2. Vessy
    Admin
    Vessy avatar
    1389 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" />
    </telerik:RadDiagram>

    Regards,
    Vessy
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top