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

A builder class for UploadMessages

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class UploadMessagesBuilder

Inheritance: objectUploadMessagesBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the UploadMessagesBuilder class.

C#
public UploadMessagesBuilder(IUploadMessages messages)
Parameters:messagesIUploadMessages

The retry message.

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.Retry("retry")
)
)

Methods

Sets the Cancel button text.

C#
public UploadMessagesBuilder Cancel(string cancelMessage)
Parameters:cancelMessagestring

New cancel button text.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.Cancel("cancel")
)
)

Sets clear file text

C#
public UploadMessagesBuilder ClearSelectedFiles(string clearSelectedFilesMessage)
Parameters:clearSelectedFilesMessagestring

New clear file text.

Returns:

UploadMessagesBuilder

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

Sets the Drag and Drop hint text.

C#
public UploadMessagesBuilder DropFilesHere(string dropFilesHereMessage)
Parameters:dropFilesHereMessagestring

New Drag and Drop hint text.

Returns:

UploadMessagesBuilder

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

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

C#
public UploadMessagesBuilder HeaderStatusPaused(string headerStatusPausedMessage)
Parameters:headerStatusPausedMessagestring

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

Returns:

UploadMessagesBuilder

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

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

C#
public UploadMessagesBuilder HeaderStatusUploaded(string headerStatusUploadedMessage)
Parameters:headerStatusUploadedMessagestring

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

Returns:

UploadMessagesBuilder

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

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

C#
public UploadMessagesBuilder HeaderStatusUploading(string headerStatusUploadingMessage)
Parameters:headerStatusUploadingMessagestring

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

Returns:

UploadMessagesBuilder

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

Sets invalid file type text

C#
public UploadMessagesBuilder InvalidFileExtension(string invalidFileExtensionMessage)
Parameters:invalidFileExtensionMessagestring

New invalid file type text.

Returns:

UploadMessagesBuilder

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

Sets invalid files

C#
public UploadMessagesBuilder InvalidFiles(string invalidFilesMessage)
Parameters:invalidFilesMessagestring

New invalid files.

Returns:

UploadMessagesBuilder

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

Sets invalid max file size text

C#
public UploadMessagesBuilder InvalidMaxFileSize(string invalidMaxFileSizeMessage)
Parameters:invalidMaxFileSizeMessagestring

New invalid max file size text.

Returns:

UploadMessagesBuilder

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

Sets invalid min file size text

C#
public UploadMessagesBuilder InvalidMinFileSize(string invalidMinFileSizeMessage)
Parameters:invalidMinFileSizeMessagestring

New invalid min file size text.

Returns:

UploadMessagesBuilder

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

Sets the Remove button text.

C#
public UploadMessagesBuilder Remove(string removeMessage)
Parameters:removeMessagestring

The Remove button text.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.Remove("remove file")
)
)

Sets the Retry button text

C#
public UploadMessagesBuilder Retry(string retryMessage)
Parameters:retryMessagestring

New Retry button text.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.Retry("retry")
)
)

Sets the Select button text

C#
public UploadMessagesBuilder Select(string selectMessage)
Parameters:selectMessagestring

New Select button text.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.Select("select")
)
)

Sets the "failed" status text accessible by screen readers

C#
public UploadMessagesBuilder StatusFailed(string statusFailedMessage)
Parameters:statusFailedMessagestring

New "failed" status text accessible by screen readers.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.StatusFailed("failed")
)
)

Sets the "uploaded" status text accessible by screen readers

C#
public UploadMessagesBuilder StatusUploaded(string statusUploadedMessage)
Parameters:statusUploadedMessagestring

New "uploaded" status text accessible by screen readers.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.StatusUploaded("uploaded")
)
)

Sets the "uploading" status text accessible by screen readers

C#
public UploadMessagesBuilder StatusUploading(string statusUploadingMessage)
Parameters:statusUploadingMessagestring

New "uploading" status text accessible by screen readers.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.StatusUploading("uploading")
)
)

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

C#
public UploadMessagesBuilder UploadFail(string uploadFailMessage)
Parameters:uploadFailMessagestring

New upload fail text.

Returns:

UploadMessagesBuilder

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

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

C#
public UploadMessagesBuilder UploadSelectedFiles(string uploadSelectedFilesMessage)
Parameters:uploadSelectedFilesMessagestring

New Upload button text.

Returns:

UploadMessagesBuilder

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
.Messages(msgs => msgs
.UploadSelectedFiles("uploading")
)
)

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

C#
public UploadMessagesBuilder UploadSuccess(string uploadSuccessMessage)
Parameters:uploadSuccessMessagestring

New upload success text.

Returns:

UploadMessagesBuilder

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