Defines the fluent API for configuring the Kendo UI ImageEditor for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ImageEditorEventBuilder : EventBuilder
Inheritance: objectEventBuilderImageEditorEventBuilder
Inherited Members
Constructors
Initializes a new instance of the ImageEditorEventBuilder class.
public ImageEditorEventBuilder(IDictionary<string, object> events)
The ImageEditor event handlers.
Methods
Defines the handler of the Error client-side event. Fired when an error happened with the image loading.
public ImageEditorEventBuilder Error(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ImageEditorEventBuilder .
Defines the handler of the Error client-side event. Fired when an error happened with the image loading.
public ImageEditorEventBuilder Error(string handler)
The name of the JavaScript function that will handle the Error event.
Returns:Returns the current instance of ImageEditorEventBuilder .
Defines the handler of the Execute client-side event. Fired when a command is executed.
public ImageEditorEventBuilder Execute(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ImageEditorEventBuilder .
Defines the handler of the Execute client-side event. Fired when a command is executed.
public ImageEditorEventBuilder Execute(string handler)
The name of the JavaScript function that will handle the Execute event.
Returns:Returns the current instance of 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.
public ImageEditorEventBuilder ImageLoaded(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of 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.
public ImageEditorEventBuilder ImageLoaded(string handler)
The name of the JavaScript function that will handle the ImageLoaded event.
Returns:Returns the current instance of 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.
public ImageEditorEventBuilder ImageRendered(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of 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.
public ImageEditorEventBuilder ImageRendered(string handler)
The name of the JavaScript function that will handle the ImageRendered event.
Returns:Returns the current instance of 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.
public ImageEditorEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of 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.
public ImageEditorEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of ImageEditorEventBuilder .