Loading datasource shapes and connection from local data

2 posts, 0 answers
  1. Nabil
    Nabil avatar
    9 posts
    Member since:
    May 2016

    Posted 29 May 2017 Link to this post


    Is it possible to fill the datasource of shapes and the datasource connection without using read method for both datasources, like in grid when loading local data ? 

    @(Html.Kendo().Diagram(Model.Ds, Model.DsCnx)
              .DataSource(d => d
                  .Model(m =>
                      m.Id(s => s.Id);
                      m.Field(s => s.Id).Editable(false);
                      m.Field(s => s.Name).Editable(false);
                      m.Field(s => s.CodeMst).Editable(false);
                      m.Field(s => s.NbEl).Editable(false);
                      m.Field(s => s.NbImbCode).Editable(false);
                      m.Field(s => s.ObjType).Editable(false);
                      m.Field(s => s.ObjectId).Editable(false);

              .ConnectionsDataSource(d => d
                  .Model(m =>
                      m.Field(c => c.From);
                      m.Field(c => c.To);

              .Events(e => e.DataBound("onDataBound"))
              .Layout(l => l

              .ShapeDefaults(sd => sd


    Best regards, 

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1978 posts

    Posted 31 May 2017 Link to this post

    Hello Nabil,

    I am afraid that this not possible with the Kendo UI Diagram for ASP.NET MVC. 

    Boyan Dimitrov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top