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

Defines the fluent API for configuring the Kendo ImageEditor for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the ImageEditor class.

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

The client events.

Methods

Defines the handler of the Error client-side event. Fired when an error happened with the image loading.

C#
public ImageEditorEventBuilder Error(string handler)
Parameters:handlerstring

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

Returns:

ImageEditorEventBuilder

Defines the handler of the Execute client-side event. Fired when a command is executed.

C#
public ImageEditorEventBuilder Execute(string handler)
Parameters:handlerstring

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

Returns:

ImageEditorEventBuilder

Defines the handler of the ImageLoaded client-side event. Fired when image is loaded. Can prevent the image rendering by calling the preventDefault() method.

C#
public ImageEditorEventBuilder ImageLoaded(string handler)
Parameters:handlerstring

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

Returns:

ImageEditorEventBuilder

Defines the handler of the ImageRendered client-side event. Fired when canvas is rendered with the image. This event is triggered by commands and when drawCanvas method is called.

C#
public ImageEditorEventBuilder ImageRendered(string handler)
Parameters:handlerstring

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

Returns:

ImageEditorEventBuilder

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

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

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

Returns:

ImageEditorEventBuilder