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

Defines the fluent API for adding items to Kendo Editable for ASP.NET MVC

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramEditableSettingsToolFactory<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramEditableSettingsToolFactory<TShapeModel, TConnectionModel>

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

Constructors

C#
public DiagramEditableSettingsToolFactory(List<DiagramEditableSettingsTool> container)
Parameters:containerList<DiagramEditableSettingsTool>

Methods

Adds an item for the createConnection action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> CreateConnection()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.CreateConnection()))
)

Adds an item for the createShape action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> CreateShape()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.CreateShape()))
)

Adds an item for a custom action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Custom()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Text("User settings").Type("button")))
)

Adds an item for the edit action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Edit()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.Edit()))
)

Adds an item for the redo action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Redo()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.Redo()))
)

Adds an item for the rotateAnticlockwise action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> RotateAnticlockwise()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.RotateAnticlockwise()))
)

Adds an item for the rotateClockwise action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> RotateClockwise()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.RotateClockwise()))
)

Adds an item for the undo action.

C#
public virtual DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Undo()
Returns:

DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns a DiagramEditableSettingsToolBuilder with the available configuration options.

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Tools(tt =&gt; tt.Undo()))
)