EditorFileBrowserMessagesBuilder
Methods
DeleteFile(System.String)
Defines text for the confirmation dialog shown when the file or directory is deleted. Default message: "Are you sure you want to delete {0}?"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.DeleteFile("Please confirm that {0} should be deleted."))
)
)
DirectoryNotFound(System.String)
Defines text for dialog shown when the directory not found error occurs. Default message: "A directory with this name was not found."
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.DirectoryNotFound("The directory is not found."))
)
)
Search(System.String)
Defines text for search box placeholder. Default message: "Search"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.Search("Search file..."))
)
)
EmptyFolder(System.String)
Defines text displayed when folder does not contain items. Default message: "Empty Folder"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.EmptyFolder("No files in this folder"))
)
)
InvalidFileType(System.String)
Defines text for dialog shown when an invalid file is set for upload. Default message: "The selected file '{0}' is not valid. Supported file types are {1}."
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.InvalidFileType("This file type is not supported"))
)
)
OrderBy(System.String)
Defines text for order by label. Default message: "Arrange by"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.OrderBy("Order by"))
)
)
OrderByName(System.String)
Defines text for Name item of order by drop down list. Default message: "Name"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.OrderByName("File name"))
)
)
OrderBySize(System.String)
Defines text for Size item of order by drop down list. Default message: "Size"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.OrderBySize("File size"))
)
)
OverwriteFile(System.String)
Defines text for dialog shown when an already existing file is set for upload. Default message: "A file with name '{0}' already exists in the current directory. Do you want to overwrite it?"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.OverwriteFile("A file with the same name already exists"))
)
)
UploadFile(System.String)
Defines text for upload button. Default message: "Upload"
Parameters
message - System.String
The message content
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Messages(messages => messages
.FileBrowser(fileBrowser => fileBrowser.UploadFile("Upload file"))
)
)