New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramEditableSettings<TShapeModel, TConnectionModel> : JsonObject where TShapeModel : class where TConnectionModel : class

Inheritance: objectJsonObjectDiagramEditableSettings<TShapeModel, TConnectionModel>

Inherited Members JsonObject.ToJson()object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public DiagramEditableSettings()

Properties

C#
protected string ConnectionEditorHtml { get; set; }

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

C#
public string ConnectionTemplate { get; set; }

The handler for the ConnectionTemplate

C#
public string ConnectionTemplateHandler { get; set; }

The id for the ConnectionTemplate

C#
public string ConnectionTemplateId { get; set; }
C#
public string ConnectionTemplateName { get; set; }
C#
public Func<TConnectionModel> DefaultConnectionDataItem { get; set; }
C#
public Func<TShapeModel> DefaultShapeDataItem { get; set; }

Specifies if the shapes and connections can be dragged.

C#
public DiagramEditableDragSettings Drag { get; set; }
C#
public bool Enabled { get; set; }
C#
public bool HasHandlerEditor { get; set; }

Specifies if the shapes and connections can be removed.

C#
public bool? Remove { get; set; }

Defines the look-and-feel of the shape resizing handles.

C#
public DiagramEditableResizeSettings Resize { get; set; }

Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.

C#
public DiagramEditableRotateSettings Rotate { get; set; }
C#
protected string ShapeEditorHtml { get; set; }

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

C#
public string ShapeTemplate { get; set; }

The handler for the ShapeTemplate

C#
public string ShapeTemplateHandler { get; set; }

The id for the ShapeTemplate

C#
public string ShapeTemplateId { get; set; }
C#
public string ShapeTemplateName { get; set; }

Specifies the toolbar tools. Supports all options supported by the toolbar.items property. Predefined tools are: "edit" - The selected item can be edited.; "createShape" - Adds an empty shape data item and a popup window is displayed.; "createConnection" - Adds an empty connection data item and a popup window is displayed.; "undo" - Undoes the previous action.; "redo" - Executes again the previously undone action.; "rotateClockwise" - The selected items can be rotated clockwise. The default rotation value is 90 degree. or "rotateAnticlockwise" - The selected items can be rotated anticlockwise. The default rotation value is 90 degree..

C#
public List<DiagramEditableSettingsTool> Tools { get; set; }

Methods

C#
public void InitializeEditor(ViewContext viewContext, ViewDataDictionary viewData)
Parameters:viewContextViewContextviewDataViewDataDictionary
C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)