Hello,
I have one field in Connection model that user should be able to change - "MyConnectionField" in example below.
The thing is that this field can contain different types of data depending on other field in the model. When user clicks on connection in diagram and chooses Edit, dialog pops up with the editable field with label "MyConnectionField". How can I change this label depending on other field in the Connection model - "MyTypeField" in example below?
@(Html.Kendo().Diagram<Shape, Connection>()
...
.ConnectionsDataSource(d => d
.Model(m =>
{
m.Id(c => c.Id); m.Field(c => c.MyTypeField);
m.Field(c => c.MyConnectionField).Editable(
true
);
})
.Read(r =>
{
r.Action(
"MyAction"
,
"MyController"
);
})
)
.ConnectionDefaults(cd => cd
.Editable(e => e.Drag(false).Remove(false)
.Tools(t => {
t.Edit();
})
)
)
...
)