All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

FileUploaderBuilder.OnFilesUploaded(RazorBlock) Method

Mirrors the client-side onFilesUploaded option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FileUploaderBuilder OnFilesUploaded(
    RazorBlock jsFunc
)

Parameters

Name Type Description
jsFunc RazorBlock

The Razor @<text> block that contains JavaScript function code.

Returns

Type Description
FileUploaderBuilder

A reference to this instance after the method is called.

Remarks

Use this method to specify a JavaScript handler for the client-side filesUploaded event. Pass the Razor @<text> block that contains the function code to the method. Function arguments are described in the client API reference.

@(Html.DevExtreme().FileUploader()
    .OnFilesUploaded(@<text>
        function(e) {
            // Handler code
        }
    </text>)
)

Refer to Handle Events and Define Callbacks for more information.

See Also