UploadBuilder
Defines the fluent interface for configuring the Upload component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class UploadBuilder : WidgetBuilderBase<Upload, UploadBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Upload, UploadBuilder>UploadBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the UploadBuilder class.
Methods
Use it to configure asynchronous uploading.
public UploadBuilder Async(Action<UploadAsyncSettingsBuilder> configurator)
Use builder to set different asynchronous uploading options.
Returns:Enables selection of folders instead of files. When a directory is selected, its entire hierarchy of contents files is included in the set of selected items. It is only supported in browsers that support webkitdirectory.
public UploadBuilder Directory(bool value)
true allows directory upload.
Returns:Enables dropping folders over the upload and its drop zone. When a directory is dropped, its entire hierarchy of contents files is included in the set of selected items. It is only supported in browsers that support DataTransferItem and webkitGetAsEntry.
public UploadBuilder DirectoryDrop(bool value)
true allows directory drop.
Returns:The string jQuery selector for the DropZone
public UploadBuilder DropZone(string dropZone)
The string jQuery selector for the DropZone
Returns:Enables or disables the component.
public UploadBuilder Enable(bool value)
true if the component should be enabled, false otherwise; the default is true.
Returns:Configures the client-side events.
public UploadBuilder Events(Action<UploadEventBuilder> configurator)
The client events configuration action.
Returns:Sets the initially rendered files. This option is available only when the Upload is in asynchronous mode. As a result, the files are displayed as uploaded successfully.
public UploadBuilder Files(Action<UploadFileFactory> configurator)
The lambda which configures initial files
Returns:Use it to configure asynchronous uploading.
public UploadBuilder Messages(Action<UploadMessagesBuilder> configurator)
Use builder to set different asynchronous uploading options.
Returns:Enables or disables multiple file selection.
public UploadBuilder Multiple(bool value)
true if multiple file selection should be enabled, false otherwise; the default is true.
Returns:Sets a value indicating whether to show the list of uploaded files
public UploadBuilder ShowFileList(bool value)
true if the list of uploaded files should be visible, false otherwise; true by default
Returns:Defines a template for rendering the files in the file list.
public UploadBuilder Template<TModel>(TemplateBuilder<TModel> template)
The JavaScript function that will return the template content.
Returns:Defines a template for rendering the files in the file list.
public UploadBuilder TemplateHandler(string template)
The JavaScript function that will return the template content.
Returns:Defines a template for rendering the files in the file list.
public UploadBuilder TemplateId(string templateId)
The "id" attribute of the external Kendo UI Template.
Returns:Defines a template for rendering the files in the file list.
public UploadBuilder TemplateView(MvcHtmlString template)
The Razor View that contains the file template.
Returns:Use it to configure validation.
public UploadBuilder Validation(Action<UploadValidationSettingsBuilder> configurator)
Use builder to set different validation options.
Returns: