New to Telerik UI for ASP.NET MVC? Start a free 30-day trial
Events
You can subscribe to all ImageEditor events and then use them to further customize the behavior of the component.
The example below demonstrates how to use the Execute
event that the ImageEditor generates when the user executes a command.
Razor
@using Kendo.Mvc.UI
@(Html.Kendo().ImageEditor()
.Name("imageEditor")
.Height(700)
.SaveAs(s => s.FileName("image_edited.png"))
.ImageUrl(@Url.Content("~/shared/images/photos/sample.jpg"))
.Events(ev => {
ev.Execute("onExecute");
})
)