ImageEditor HtmlHelper Overview

The Telerik UI ImageEditor HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI ImageEditor widget.

The ImageEditor utilizes a canvas element and enables image editing. It allows you to open, edit and save edited images.

Initializing the ImageEditor

The following example demonstrates how to define the ImageEditor by using the ImageEditor HtmlHelper.

@(Html.Kendo().ImageEditor()
    .Name("imageEditor")
    .Width(500)
    .Height(500)
    .SaveAs(saveas => saveas.FileName("image.png"))
)

Functionality and Features

Events

The following example demonstrates how to handle ImageEditor HTML helper events on the client-side. For a complete example on basic ImageEditor events, refer to the demo on using the events of the ImageEditor.

@(Html.Kendo().ImageEditor()
    .Name("imageEditor")
    .Events(e => e
        .ImageLoaded("onImageLoaded")
    )
)

<script>
    function onImageLoaded(e) {
        console.log("Image loaded");
    }
</script>

See Also

In this article
Not finding the help you need? Improve this article