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

Kendo.Mvc.UI.Fluent.ColorGradientBuilder

Defines the fluent API for configuring the Kendo ColorGradient for ASP.NET MVC.

Methods

Opacity(System.Boolean)

Specifies whether we should display the opacity slider to allow selection of transparency.

Parameters

value System.Boolean

The value that configures the opacity.

ContrastTool

Enables the contrast tool in the ColorGradient.

ContrastTool(System.Boolean)

Enables the contrast tool in the ColorGradient.

Parameters

enabled System.Boolean

Enables or disables the contrasttool option.

ContrastTool(System.Action<Kendo.Mvc.UI.Fluent.ColorGradientContrastToolSettingsBuilder>)

Enables the contrast tool in the ColorGradient.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ColorGradientContrastToolSettingsBuilder>

The action that configures the contrasttool.

Input(System.Boolean)

Whether to render the input.

Parameters

value System.Boolean

The value that configures the input.

Value(System.String)

Specifies the initially selected color.

Parameters

value System.String

The value that configures the value.

Messages(System.Action<Kendo.Mvc.UI.Fluent.ColorGradientMessagesSettingsBuilder>)

Allows customization labels and messages in the ColorGradient.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ColorGradientMessagesSettingsBuilder>

The action that configures the messages.

Format(Kendo.Mvc.UI.ColorGradientFormat)

Defines the format of the gradient input editor

Parameters

value Kendo.Mvc.UI.ColorGradientFormat

The value that configures the format.

Events(System.Action<Kendo.Mvc.UI.Fluent.ColorGradientEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ColorGradientEventBuilder>

The client events action.

Example (ASPX)

<%= Html.Kendo().ColorGradient()
    .Name("ColorGradient")
    .Events(events => events
        .Change("onChange")
    )
%>

Formats(System.String[])

Sets the available input formats in the gradient input editor.

Parameters

formats System.String[]

Only "hex" and "rgb" are valid values.

Example (ASPX)

<%= Html.Kendo().ColorGradient()
    .Name("ColorGradient")
    .Formats(new string[]{ "rgb", "hex" })
%>
In this article
Not finding the help you need?