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

EditorColorPickerToolBuilder

Methods

Palette(System.Collections.Generic.IEnumerable)

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

Parameters

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

The collection of colors.

Example


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

Columns(System.Int32)

Specifies the color columns for "FontColor" and "BackColor" tools when a list of colors is defined.

Parameters

columns - System.Int32

The number of columns.

Example


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

Palette(Kendo.Mvc.UI.ColorPickerPalette)

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

Parameters

palette - ColorPickerPalette

The ColorPickerPalette palette.

Example


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

In this article
Not finding the help you need?