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

UploadMessagesBuilder

A builder class for UploadMessages

Methods

Cancel(System.String)

Sets the Cancel button text

Parameters

cancelMessage - System.String

New cancel button text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .Cancel("cancel")
                        )
            )

DropFilesHere(System.String)

Sets the Drag and Drop hint text

Parameters

dropFilesHereMessage - System.String

New Drag and Drop hint text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .DropFilesHere("drop files here")
                        )
            )

Remove(System.String)

Sets the Remove button text

Parameters

removeMessage - System.String

New Remove button text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .Remove("drop files here")
                        )
            )

Retry(System.String)

Sets the Retry button text

Parameters

retryMessage - System.String

New Retry button text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .Retry("retry")
                        )
            )

Select(System.String)

Sets the Select button text

Parameters

selectMessage - System.String

New Select button text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .Select("select")
                        )
            )

StatusFailed(System.String)

Sets the "failed" status text accessible by screen readers

Parameters

statusFailedMessage - System.String

New "failed" status text accessible by screen readers.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .StatusFailed("failed")
                        )
            )

StatusUploaded(System.String)

Sets the "uploaded" status text accessible by screen readers

Parameters

statusUploadedMessage - System.String

New "uploaded" status text accessible by screen readers.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .StatusUploaded("uploaded")
                        )
            )

StatusUploading(System.String)

Sets the "uploading" status text accessible by screen readers

Parameters

statusUploadingMessage - System.String

New "uploading" status text accessible by screen readers.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .StatusUploading("uploading")
                        )
            )

HeaderStatusPaused(System.String)

Sets the "paused" header status text accessible by screen readers

Parameters

headerStatusPausedMessage - System.String

New "header paused" status text accessible by screen readers.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .HeaderStatusPaused("header paused")
                        )
            )

HeaderStatusUploading(System.String)

Sets the "uploading" header status text accessible by screen readers

Parameters

headerStatusUploadingMessage - System.String

New "header uploading" status text accessible by screen readers.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .HeaderStatusUploading("header uploading")
                        )
            )

HeaderStatusUploaded(System.String)

Sets the "uploaded" header status text accessible by screen readers

Parameters

headerStatusUploadedMessage - System.String

New "header uploaded" status text accessible by screen readers.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .HeaderStatusUploaded("header uploaded")
                        )
            )

UploadSelectedFiles(System.String)

Sets Upload button (visible when AutoUpload is set to false) text

Parameters

uploadSelectedFilesMessage - System.String

New Upload button text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .UploadSelectedFiles("uploading")
                        )
            )

UploadSuccess(System.String)

Sets the text of the validation message when a file is succesfully uploaded

Parameters

uploadSuccessMessage - System.String

New upload success text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .UploadSuccess("upload success")
                        )
            )

UploadFail(System.String)

Sets the text of the validation message when a file fails to upload

Parameters

uploadFailMessage - System.String

New upload fail text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .UploadFail("upload fail")
                        )
            )

InvalidMaxFileSize(System.String)

Sets invalid max file size text

Parameters

invalidMaxFileSizeMessage - System.String

New invalid max file size text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .InvalidMaxFileSize("invalid max file size")
                        )
            )

InvalidMinFileSize(System.String)

Sets invalid min file size text

Parameters

invalidMinFileSizeMessage - System.String

New invalid min file size text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .InvalidMinFileSize("invalid min file size")
                        )
            )

InvalidFileExtension(System.String)

Sets invalid file type text

Parameters

invalidFileExtensionMessage - System.String

New invalid file type text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .InvalidFileExtension("invalid file type size")
                        )
            )

InvalidFiles(System.String)

Sets invalid files

Parameters

invalidFilesMessage - System.String

New invalid files.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .InvalidFiles("invalid files")
                        )
            )

ClearSelectedFiles(System.String)

Sets clear file text

Parameters

clearSelectedFilesMessage - System.String

New clear file text.

Example


             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Messages(msgs => msgs
                            .ClearSelectedFiles("clear file")
                        )
            )

In this article
Not finding the help you need?