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

Defines the fluent API for configuring the DiagramConnectionDefaultsEditableSettingsTool settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionDefaultsEditableSettingsToolBuilder<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 DiagramConnectionDefaultsEditableSettingsToolBuilder(DiagramConnectionDefaultsEditableSettingsTool settings)
Parameters:settingsDiagramConnectionDefaultsEditableSettingsTool

Methods

Specifies the buttons of ButtonGroup in the default Toolbar of the connections.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Buttons(Action<DiagramConnectionDefaultsEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionDefaultsEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel>>

The action that configures the buttons.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Specifies the "click" event handler of the button tool. The option is applicable only for commands of type button and splitButton.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the click action.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Specifies the "click" event handler of the button tool. The option is applicable only for commands of type button and splitButton.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(string handler)
Parameters:handlerstring

The value that configures the click action.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("customUpdateBtn").Type("button").Text("Update").Click("onUpdateClick")))
)
)

Specifies whether the toolbar button is initially enabled or disabled. The default value is "true".

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Enable(bool value)
Parameters:valuebool

The value that enables or disables the button.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("customBtn").Type("button").Enable(false).Text("Custom Button")))
)
)

Assigns a group to the toolbar custom button. The option is applicable only for buttons with option Togglable(true).

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Group(string value)
Parameters:valuestring

The value that configures the group of the button.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt;
{
tt.Custom().Type("button").Name("btn1").Text("Button 1").Togglable(true).Group("group1");
tt.Custom().Type("button").Name("btn2").Text("Button 2").Togglable(true).Group("group1");
tt.Custom().Type("button").Name("btn2").Text("Button 3").Togglable(true).Group("group1");
}))
)
)

Specifies the HTML attributes of the toolbar tool.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value that configures the HTML attributes.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("customUpdateBtn").Type("button").Text("Update").HtmlAttributes(new Dictionary&lt;string, object&gt;() { ["class"] = "custom-btn" })))
)
)

Specifies the HTML attributes of the toolbar tool.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(object value)
Parameters:valueobject

The value that configures the HTML attributes.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("customUpdateBtn").Type("button").Text("Update").HtmlAttributes(new { @class = "custom-btn"})))
)
)

Sets an icon for the toolbar button. The icon must be one of the existing in the Kendo UI theme sprite.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Icon(string value)
Parameters:valuestring

The value that configures the icon for the toolbar button.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("infoBtn").Type("button").Icon("info-circle")))
)
)

Specifies the ID of the toolbar button.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Id(string value)
Parameters:valuestring

The value that configures the id of the button.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("infoBtn").Type("button").Id("infoButton")))
)
)

Sets an image with a specified URL to be rendered in the toolbar button.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ImageUrl(string value)
Parameters:valuestring

The value that configures the image URL.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Type("button").ImageUrl("/diagram/settings.png")))
)
)

Specifies the menu buttons of SplitButton or DropDownButton in the default Toolbar of the connections.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> MenuButtons(Action<DiagramConnectionDefaultsEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionDefaultsEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel>>

The action that configures the menubuttons.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Sets the name of the toolbar tool. The built-in tools are "edit" and "delete".

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Name(string value)
Parameters:valuestring

The value that configures the tool name.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

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

Specifies how the button behaves when the toolbar is resized. The supported values are: "always", "never" or "auto" (default). If a toolbar item contains a template and the Overflow is set to "always", the template will never be rendered. If the item contains an OverflowTemplate() and the Overflow is set to "never", the specified overflow template will never be rendered.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Overflow(string value)
Parameters:valuestring

The value that configures the overflow option.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Text("Settings").Type("button").Overflow("always")))
)
)

Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate(string value)
Parameters:valuestring

The value that configures the overflow template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt
.Custom()
.Name("settingsBtn")
.Template("&lt;div class='settings'&gt;Settings&lt;/div&gt;")
.OverflowTemplate("&lt;div class='overflow-settings'&gt;Settings&lt;/div&gt;")))
)
)

Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the overflowtemplate.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateHandler(string value)
Parameters:valuestring

The value that configures the overflow template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt
.Custom()
.Name("settingsBtn")
.Template("&lt;div class='settings'&gt;Settings&lt;/div&gt;")
.OverflowTemplateHandler("getOverflowTemplate")))
)
)

Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateId(string value)
Parameters:valuestring

The value that configures the overflow template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt
.Custom()
.Name("settingsBtn")
.Template("&lt;div class='settings'&gt;Settings&lt;/div&gt;")
.OverflowTemplateId("overflowTemplate")))
)
)
&lt;script id="overflowTemplate" type="text/x-kendo-template"&gt;
&lt;div class='overflow-settings'&gt;Settings&lt;/div&gt;
&lt;/script&gt;

Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the overflow template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt
.Custom()
.Name("settingsBtn")
.Template("&lt;div class='settings'&gt;Settings&lt;/div&gt;")
.OverflowTemplateView(Html.Partial("OverflowTemplateView"))))
)
)

Specifies whether the toolbar button is primary. The primary buttons have different styling.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Primary(bool value)
Parameters:valuebool

The value that configures the primary.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Text("Settings").Type("button").Primary(true)))
)
)

Specifies if the toolbar toggle button must be initially selected. The option is applicable only for buttons with Togglable(true).

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Selected(bool value)
Parameters:valuebool

The value that configures the selected option.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Text("Settings").Type("button").Togglable(true).Selected(true)))
)
)

Specifies where the toolbar button icon will be displayed. The supported values are: "toolbar", "overflow", and "both" (default).

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowIcon(string value)
Parameters:valuestring

The value that configures the visibility of the button icon.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("infoBtn").Type("button").Icon("info-circle").ShowIcon("toolbar")))
)
)

Specifies where the toolbar button's text will be displayed. The supported values are: "toolbar", "overflow", and "both" (default).

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowText(string value)
Parameters:valuestring

The value that configures the visibility of the button text.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Type("button").Text("Settings").ShowText("overflow")))
)
)

Defines a CSS class (or multiple classes separated by spaces) that will be used for the button's icon.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> SpriteCssClass(string value)
Parameters:valuestring

The value that configures the CSS class.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Type("button").Text("Settings").Icon("check").SpriteCssClass("tick-icon")))
)
)

Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template(string value)
Parameters:valuestring

The value that configures the item template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Template("&lt;button style='color: red;'&gt;Settings&lt;/button&gt;")))
)
)

Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateHandler(string value)
Parameters:valuestring

The value that configures the item template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").TemplateHandler("getItemTemplate")))
)
)

Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateId(string value)
Parameters:valuestring

The value that configures the item template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").TemplateId("settingsTemplate")))
)
)
&lt;script id="settingsTemplate" type="text/x-kendo-template"&gt;
&lt;button style='color: red;'&gt;Settings&lt;/button&gt;
&lt;/script&gt;

Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the item template.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").TemplateView(Html.Partial("ItemTemplateView"))))
)
)

Sets the text of the toolbar button.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

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

Specifies whether the toolbar button must be togglable. For example, the button has a selected and unselected state.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Togglable(bool value)
Parameters:valuebool

The value that enables or disables the togglable option.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

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

Specifies the Toggle event handler of the toolbar button. The option is applicable only for commands with options Type("button") and Togglable(true).

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the toggle action.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Specifies the Toggle event handler of the toolbar button. The option is applicable only for commands with options Type("button") and Togglable(true).

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(string handler)
Parameters:handlerstring

The value that configures the toggle action.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Editable(e =&gt; e.Tools(tt =&gt; tt.Custom().Name("settingsBtn").Text("User settings").Type("button").Togglable(true).Toggle("onButtonToggle")))
)
)
&lt;script&gt;
function onButtonToggle() {
console.log("toggle toolbar button");
}
&lt;/script&gt;

Specifies the type of the toolbar command. The supported types are: "button", "splitButton", "dropDownButton", "buttonGroup", "separator", "spacer".

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Type(string value)
Parameters:valuestring

The value that configures the command type.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

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

Specifies the URL of the toolbar command to navigate to.

C#
public DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Url(string value)
Parameters:valuestring

The value that configures the URL.

Returns:

DiagramConnectionDefaultsEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

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