Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramEditableSettings<TShapeModel, TConnectionModel> : JsonObject where TShapeModel : class where TConnectionModel : class
Inheritance: objectJsonObjectDiagramEditableSettings<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramEditableSettings()
Properties
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.
public string ConnectionTemplate { get; set; }
The handler for the ConnectionTemplate
public string ConnectionTemplateHandler { get; set; }
The id for the ConnectionTemplate
public string ConnectionTemplateId { get; set; }
public string ConnectionTemplateName { get; set; }
DefaultConnectionDataItem
Func<TConnectionModel>
public Func<TConnectionModel> DefaultConnectionDataItem { get; set; }
DefaultShapeDataItem
Func<TShapeModel>
public Func<TShapeModel> DefaultShapeDataItem { get; set; }
Specifies if the shapes and connections can be dragged.
public DiagramEditableDragSettings Drag { get; set; }
public bool HasHandlerEditor { get; set; }
Specifies if the shapes and connections can be removed.
public bool? Remove { get; set; }
Defines the look-and-feel of the shape resizing handles.
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.
public DiagramEditableRotateSettings Rotate { get; set; }
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.
public string ShapeTemplate { get; set; }
The handler for the ShapeTemplate
public string ShapeTemplateHandler { get; set; }
The id for the ShapeTemplate
public string ShapeTemplateId { get; set; }
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..
public List<DiagramEditableSettingsTool> Tools { get; set; }
Methods
public void InitializeEditor(ViewContext viewContext, ViewDataDictionary viewData)
protected override void Serialize(IDictionary<string, object> json)
Overrides: