ImageEditorEventBuilder
Methods
ImageLoaded(System.String)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.ImageLoaded("onImageLoaded")
)
)
ImageLoaded(System.Func)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.ImageLoaded(
@<text>
function(event){
event handling code
}
</text>
))
)
ImageRendered(System.String)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.ImageRendered("onImageRendered")
)
)
ImageRendered(System.Func)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.ImageRendered(
@<text>
function(event){
event handling code
}
</text>
))
)
Execute(System.String)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.Execute("onExecute")
)
)
Execute(System.Func)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.Execute(
@<text>
function(event){
event handling code
}
</text>
))
)
Error(System.String)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events
.Error("onError")
)
)
Error(System.Func)
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.
Example
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Events(events => events.Error(
@<text>
function(event){
event handling code
}
</text>
))
)