New to Telerik UI for ASP.NET Core? Download free 30-day trial

UploadEventBuilder

Defines the fluent API for configuring the Kendo UI Upload for ASP.NET MVC events.

Methods

Cancel(System.String)

Defines the name of the JavaScript function that will handle the the Cancel client-side event, which fires when the upload was cancelled while in progress.

For more information see Cancel event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Cancel("onCancel"))
            )

Cancel(System.Func)

Defines the inline handler of the Cancel client-side event, which fires when the upload was cancelled while in progress.

For more information see Cancel event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Cancel(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Clear(System.String)

Defines the name of the JavaScript function that will handle the the Clear client-side event, which fires when the files are cleared by clicking on the Clear button.

For more information see Clear event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Clear("onClear"))
            )

Clear(System.Func)

Defines the inline handler of the Clear client-side event, which fires when the files are cleared by clicking on the Clear button.

For more information see Clear event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Clear(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Complete(System.String)

Defines the name of the JavaScript function that will handle the the Complete client-side event, which fires when all active uploads complete—either successfully or with errors.

For more information see Complete event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Complete("onComplete"))
            )

Complete(System.Func)

Defines the inline handler of the Complete client-side event, which fires when all active uploads complete—either successfully or with errors.

For more information see Complete event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Complete(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Error(System.String)

Defines the name of the JavaScript function that will handle the the Error client-side event, which fires when an upload or remove operation fails.

For more information see Error event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Error("onError"))
            )

Error(System.Func)

Defines the inline handler of the Error client-side event, which fires when an upload or remove operation fails.

For more information see Error event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Error(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Pause(System.String)

Defines the name of the JavaScript function that will handle the Pause client-side event, which fires when the upload is paused by clicking the Pause button.

For more information see Pause event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Pause("onPause"))
            )

Pause(System.Func)

Defines the inline handler of the Pause client-side event, which fires when the upload is paused by clicking the Pause button.

For more information see Pause event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Pause(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Progress(System.String)

Defines the name of the JavaScript function that will handle the the Progress client-side event, which fires when the data about the progress of the upload is available.

For more information see Progress event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Progress("onProgress"))
            )

Progress(System.Func)

Defines the inline handler of the Progress client-side event, which fires when the data about the progress of the upload is available.

For more information see Progress event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Progress(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Resume(System.String)

Defines the name of the JavaScript function that will handle the Resume client-side event, which fires when the file upload is resumed through clicking the Resume button.

For more information see Resume event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Resume("onResume"))
            )

Resume(System.Func)

Defines the inline handler of the Resume client-side event, which fires when the file upload is resumed through clicking the Resume button.

For more information see Resume event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Resume(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Remove(System.String)

Defines the name of the JavaScript function that will handle the the Remove client-side event, which fires when an uploaded file is about to be removed.

For more information see Remove event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Remove("onRemove"))
            )

Remove(System.Func)

Defines the inline handler of the Remove client-side event, which fires when an uploaded file is about to be removed.

For more information see Remove event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Remove(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Select(System.String)

Defines the inline handler of the Select client-side event, which fires when a file is selected.

For more information see Select event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Select("onSelect"))
            )

Select(System.Func)

Defines the inline handler of the Select client-side event, which fires when a file is selected.

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Select(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Success(System.String)

Defines the name of the JavaScript function that will handle the the Success client-side event, which fires when an upload or a remove operation is successfully completed.

For more information see Success event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Success("onSuccess"))
            )

Success(System.Func)

Defines the inline handler of the Success client-side event, which fires when an upload or a remove operation is successfully completed.

For more information see Success event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Success(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Upload(System.String)

Defines the name of the JavaScript function that will handle the the Upload client-side event. This event fires when one or more files are about to be uploaded.

For more information see Upload event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Events(events => events.Upload("onUpload"))
            )

Upload(System.Func)

Defines the name of the JavaScript function that will handle the the Upload client-side event. This event fires when one or more files are about to be uploaded.

For more information see Upload event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().Upload()
                       .Name("Upload")
                       .Events(events => events.Success(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

In this article
Not finding the help you need?