Connection Text Visibility?

2 posts, 0 answers
  1. Edward
    Edward avatar
    3 posts
    Member since:
    Sep 2014

    Posted 29 Jun Link to this post

    I've dug through every readily available example (that I can find) of the UI for MVC Diagram, and can't find any way to show or display the "Text" attribute of a Connection. I'm seeing that the "Text" member is correctly being passed from controller to view (and is editable to boot), but don't see any way to display it on the view. Is this at all possible with the Diagram control for MVC?
  2. Bozhidar
    Bozhidar avatar
    677 posts

    Posted 30 Jun Link to this post


    Here is a simple example of how to put a text of the connection:

    and the code itself:

    <div id="diagram"></div>
        var Point = kendo.dataviz.diagram.Point;
        var diagram = $("#diagram").kendoDiagram({ }).getKendoDiagram();
        var shapeA = diagram.addShape(new Point(100, 100));
        var shapeB = diagram.addShape(new Point(400, 100));
        var connection = diagram.connect(shapeA, shapeB, {
            stroke: { color: "red" },
            hover: {
                stroke: {
                    color: "blue"
          content:{text: "Hello"}

    Also, you could look slo at the API reference at: where it pointed:

    content.text String

    The static text displayed on the connection.

    I hope that will help.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top