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

Kendo.Mvc.UI.Fluent.ColorGradientBuilder

Defines the fluent API for configuring the Kendo UI ColorGradient

Methods

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" })
%>

Opacity(System.Boolean)

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

Parameters

value System.Boolean

The value for Opacity

Opacity

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

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 configurator for the contrasttool setting.

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.

Input(System.Boolean)

Whether to render the input.

Parameters

value System.Boolean

The value for Input

Value(System.String)

Specifies the initially selected color.

Parameters

value System.String

The value for 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 configurator for the messages setting.

Format(Kendo.Mvc.UI.ColorGradientFormat)

Defines the format of the gradient input editor.

Parameters

value Kendo.Mvc.UI.ColorGradientFormat

The value for 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")
    )
)
In this article
Not finding the help you need?