ImageEditorEventBuilder
Methods
ImageLoaded(System.String)
Defines the handler of the ImageLoaded client-side event. Fired when image is loaded. Can prevent the image rendering by calling the preventDefault() method.
For more information see ImageLoaded event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the ImageLoaded event.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.ImageLoaded("onImageLoaded")
)
)
ImageLoaded(System.Func)
Defines the handler of the ImageLoaded client-side event. Fired when image is loaded. Can prevent the image rendering by calling the preventDefault() method.
For more information see ImageLoaded event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.ImageLoaded(
@<text>
function(event){
event handling code
}
</text>
))
)
ImageRendered(System.String)
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.
For more information see ImageRendered event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the ImageRendered event.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.ImageRendered("onImageRendered")
)
)
ImageRendered(System.Func)
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.
For more information see ImageRendered event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.ImageRendered(
@<text>
function(event){
event handling code
}
</text>
))
)
Execute(System.String)
Defines the handler of the Execute client-side event. Fired when a command is executed.
For more information see Execute event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Execute event.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.Execute("onExecute")
)
)
Execute(System.Func)
Defines the handler of the Execute client-side event. Fired when a command is executed.
For more information see Execute event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.Execute(
@<text>
function(event){
event handling code
}
</text>
))
)
Error(System.String)
Defines the handler of the Error client-side event. Fired when an error happened with the image loading.
For more information see Error event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Error event.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.Error("onError")
)
)
Error(System.Func)
Defines the handler of the Error client-side event. Fired when an error happened with the image loading.
For more information see Error event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.Error(
@<text>
function(event){
event handling code
}
</text>
))
)
KendoKeydown(System.String)
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.
For more information see KendoKeydown event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the KendoKeydown event.
RETURNS
Returns the current instance of ImageEditorEventBuilder .
KendoKeydown(System.Func)
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.
For more information see KendoKeydown event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ImageEditorEventBuilder .