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

Defines the fluent API for configuring the Telerik UI for ASP.NET MVC ColorGradient client events.

Definition

Constructors

Initializes a new instance of the ColorGradient class.

C#
public ColorGradientEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The client events.

Methods

Defines the handler of the Change client-side event. Triggers when a new color has been selected.

C#
public ColorGradientEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Change event.

Returns:

ColorGradientEventBuilder

Example:
C#
@(Html.Kendo().ColorGradient()
.Name("colorGradient")
.Events(events =&gt; events.Change("onChange"))
)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ColorGradient is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ColorGradientEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

ColorGradientEventBuilder