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

EditorToolBuilder

Methods

Palette(System.Collections.Generic.IEnumerable)

Specifies a list of colors for "ForeColor" and "BackColor" tools.

Parameters

colors - System.Collections.Generic.IEnumerable<String>

The collection of colors.

Example


             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .ForeColor(config => config.Palette(new string[] { "#ffffff", "#ffff00", "#db9791" }))
                    .BackColor(config => config.Palette(new string[] { "#ffffff", "#ffff00", "#db9791" }))
               )   
             )

Palette(Kendo.Mvc.UI.ColorPickerPalette)

Specifies the color palette for "ForeColor" and "BackColor" tools.

Parameters

palette - ColorPickerPalette

The ColorPickerPalette palette.

Example


             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .ForeColor(config => config.Palette(ColorPickerPalette.WebSafe))
                    .BackColor(config => config.Palette(ColorPickerPalette.Basic))
               )   
             )

ToolTip(System.String)

The text which will be displayed when the end-user hovers the tool button with the mouse.

Parameters

value - System.String

The value for Tooltip

Name(System.String)

When specifying a tool as an object, a tool name is required. Please note that "undo" and "redo" are reserved tool names.

Parameters

value - System.String

The value for Name

Tooltip(System.String)

The text which will be displayed when the end-user hovers the tool button with the mouse.

Parameters

value - System.String

The value for Tooltip

Exec(System.String)

The JavaScript function which will be executed when the end-user clicks the tool button.

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

Exec(System.Func)

The JavaScript function which will be executed when the end-user clicks the tool button.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Items(System.Action)

For tools that display a list of items (fontName, fontSize, formatting), this option specifies the items in the shown list.

Parameters

configurator - System.Action<EditorToolItemFactory>

The configurator for the items setting.

Columns(System.Int32)

Specifies the colors columns for "foreColor" and "backColor" tools when list of colors are defined.

Parameters

value - System.Int32

The value for Columns

Template(System.String)

The kendo template that will be used for rendering the given tool.

Parameters

value - System.String

The value for Template

TemplateId(System.String)

The kendo template that will be used for rendering the given tool.

Parameters

templateId - System.String

The ID of the template element for Template

TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The kendo template that will be used for rendering the given tool.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for Template

TemplateHandler(System.String)

The kendo template that will be used for rendering the given tool.

Parameters

templateHandler - System.String

The handler that returs the template for Template

Template(Kendo.Mvc.UI.TemplateBuilder)

The kendo template that will be used for rendering the given tool.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the template.

Icon(System.String)

Specifies the icon that will be rendered for the tools.

Parameters

value - System.String

The value for Icon

In this article
Not finding the help you need?