This example shows the client-side events supported by Telerik Upload for ASP.NET MVC.
You can attach an event handler using either of these options:
Html.Telerik().Upload()
.Name("attachments")
.ClientEvents(events => events
.OnLoad("onLoad")
)
<%= Html.Telerik().Upload()
.Name("attachments")
.ClientEvents(events => events
.OnLoad(() =>
{
%>
function(e) {
// Perform required actions here.
}
<%
}
)
%>
@(Html.Telerik().Upload()
.Name("attachments")
.ClientEvents(events => events
.OnLoad(
@<text>
function(e) {
// Perform required actions here.
}
</text>)
)
)
The upload has the following events: