EditorImageBrowserMessagesBuilder
Methods
DeleteFile(System.String)
Defines text for the confirmation dialog shown when the image 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
.ImageBrowser(imageBrowser => imageBrowser.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
.ImageBrowser(imageBrowser => imageBrowser.DirectoryNotFound("Not found directory."))
)
)
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
.ImageBrowser(imageBrowser => imageBrowser.Search("Search image..."))
)
)
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
.ImageBrowser(imageBrowser => imageBrowser.EmptyFolder("Empty"))
)
)
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
.ImageBrowser(imageBrowser => imageBrowser.InvalidFileType("The file type is not valid"))
)
)
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
.ImageBrowser(imageBrowser => imageBrowser.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
.ImageBrowser(imageBrowser => imageBrowser.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
.ImageBrowser(imageBrowser => imageBrowser.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
.ImageBrowser(imageBrowser => imageBrowser.OverwriteFile("Do you want to overwrite the file with name '{0}'?"))
)
)
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
.ImageBrowser(imageBrowser => imageBrowser.UploadFile("Upload image"))
)
)