Defines the fluent API for configuring the Kendo UI ColorPicker for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ColorPickerEventBuilder : EventBuilder
Inheritance: objectEventBuilderColorPickerEventBuilder
Inherited Members
Constructors
Initializes a new instance of the ColorPickerEventBuilder class.
public ColorPickerEventBuilder(IDictionary<string, object> events)
The ColorPicker event handlers.
Methods
Defines the handler of the Change client-side event. Fires when a color was selected, either by clicking on it (in the simple picker), by clicking ENTER or by pressing "Apply" in the HSV picker.
public ColorPickerEventBuilder Change(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Change client-side event. Fires when a color was selected, either by clicking on it (in the simple picker), by clicking ENTER or by pressing "Apply" in the HSV picker.
public ColorPickerEventBuilder Change(string handler)
The name of the JavaScript function that will handle the Change event.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Close client-side event. Fires when the picker popup is closing.
public ColorPickerEventBuilder Close(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Close client-side event. Fires when the picker popup is closing.
public ColorPickerEventBuilder Close(string handler)
The name of the JavaScript function that will handle the Close event.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ColorPicker is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public ColorPickerEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ColorPicker is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public ColorPickerEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Open client-side event. Fires when the picker popup is opening.
public ColorPickerEventBuilder Open(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Open client-side event. Fires when the picker popup is opening.
public ColorPickerEventBuilder Open(string handler)
The name of the JavaScript function that will handle the Open event.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Select client-side event. Fires as a new color is displayed in the drop-down picker. This is not necessarily the "final" value; for example this event triggers when the sliders in the HSV selector are dragged, but then pressing ESC would cancel the selection and the color will revert to the original value.
public ColorPickerEventBuilder Select(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ColorPickerEventBuilder .
Defines the handler of the Select client-side event. Fires as a new color is displayed in the drop-down picker. This is not necessarily the "final" value; for example this event triggers when the sliders in the HSV selector are dragged, but then pressing ESC would cancel the selection and the color will revert to the original value.
public ColorPickerEventBuilder Select(string handler)
The name of the JavaScript function that will handle the Select event.
Returns:Returns the current instance of ColorPickerEventBuilder .