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>
))
)