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

Defines the fluent API for configuring the Kendo FileManager for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the FileManager class.

C#
public FileManagerBuilder(FileManager component)
Parameters:componentFileManager

The component.

Methods

Configures or disables the Breadcrumb component.

C#
public FileManagerBuilder Breadcrumb(Action<FileManagerBreadcrumbSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerBreadcrumbSettingsBuilder>

The action that configures the breadcrumb.

Returns:

FileManagerBuilder

Configures or disables the Breadcrumb component.

C#
public FileManagerBuilder Breadcrumb(bool enabled)
Parameters:enabledbool

Enables or disables the breadcrumb option.

Returns:

FileManagerBuilder

Configures the ContextMenu of the FileManager.

C#
public FileManagerBuilder ContextMenu(Action<FileManagerContextMenuSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerContextMenuSettingsBuilder>

The action that configures the contextmenu.

Returns:

FileManagerBuilder

Configures the ContextMenu of the FileManager.

C#
public FileManagerBuilder ContextMenu(bool enabled)
Parameters:enabledbool

Enables or disables the contextmenu option.

Returns:

FileManagerBuilder

Configure the DataSource of the component

C#
public FileManagerBuilder DataSource(Action<FileManagerDataSourceBuilder<object>> configurator)
Parameters:configuratorAction<FileManagerDataSourceBuilder<object>>

The action that configures the DataSource.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =&gt;
{
dataSource.Read(operation =&gt; operation
.Type(HttpVerbs.Post)
.Action("Read", "FileManagerData")
);
})
)

Sets the data source configuration of the DataSource.

C#
public FileManagerBuilder DataSource(string dataSourceId)
Parameters:dataSourceIdstring

The unique identifier of the DataSource

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource("myDataSource")
)

Specifies the composite Dialog widgets of the FileManager.

C#
public FileManagerBuilder Dialogs(Action<FileManagerDialogsSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerDialogsSettingsBuilder>

The action that configures the dialogs.

Returns:

FileManagerBuilder

Enables or disables the drag and drop features of the FileManager.

C#
public FileManagerBuilder Draggable(bool value)
Parameters:valuebool

The value that configures the draggable.

Returns:

FileManagerBuilder

Configures the client-side events.

C#
public FileManagerBuilder Events(Action<FileManagerEventBuilder> configurator)
Parameters:configuratorAction<FileManagerEventBuilder>

The client events action.

Returns:

FileManagerBuilder

Example:
C#
@( Html.Kendo().FileManager()
.Name("FileManager")
.Events(events =&gt; events
.Navigate("onNavigate")
)
)

Configures the height of the FileManager.

C#
public FileManagerBuilder Height(double value)
Parameters:valuedouble

The value that configures the height.

Returns:

FileManagerBuilder

Configures the initial view of the FileManager.

C#
public FileManagerBuilder InitialView(string value)
Parameters:valuestring

The value that configures the initialview.

Returns:

FileManagerBuilder

Defines the text of the localizable UI parts of the FileManager.

C#
public FileManagerBuilder Messages(Action<FileManagerMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerMessagesSettingsBuilder>

The action that configures the messages.

Returns:

FileManagerBuilder

Configures the Preview Pane of the FileManager.

C#
public FileManagerBuilder PreviewPane(Action<FileManagerPreviewPaneSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerPreviewPaneSettingsBuilder>

The action that configures the previewpane.

Returns:

FileManagerBuilder

Configures the resizable features of the FileManager.

C#
public FileManagerBuilder Resizable(bool value)
Parameters:valuebool

The value that configures the resizable.

Returns:

FileManagerBuilder

Configures the Toolbar of the FileManager

C#
public FileManagerBuilder Toolbar(Action<FileManagerToolbarSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerToolbarSettingsBuilder>

The action that configures the toolbar.

Returns:

FileManagerBuilder

Configures the Toolbar of the FileManager

C#
public FileManagerBuilder Toolbar(bool enabled)
Parameters:enabledbool

Enables or disables the toolbar option.

Returns:

FileManagerBuilder

Configures the composite Upload widget of the FileManager. Accepts the same options as the kendoUpload widget.

C#
public FileManagerBuilder Upload(Action<FileManagerUploadSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerUploadSettingsBuilder>

The action that configures the upload.

Returns:

FileManagerBuilder

Sets the route values for the upload operation

C#
public FileManagerBuilder UploadUrl(RouteValueDictionary routeValues)
Parameters:routeValuesRouteValueDictionary

The route values of the action method.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl(new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)

Sets the route and values for the upload operation

C#
public FileManagerBuilder UploadUrl(string routeName, object routeValues)
Parameters:routeNamestring

Name of the route.

routeValuesobject

The route values.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("/Home", new object { id = 1})
)

Sets the route and values for the upload operation

C#
public FileManagerBuilder UploadUrl(string routeName, RouteValueDictionary routeValues)
Parameters:routeNamestring

Name of the route.

routeValuesRouteValueDictionary

The route values.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("/Home", new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)

Sets the action, controller and route values for the upload operation

C#
public FileManagerBuilder UploadUrl(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Name of the action.

controllerNamestring

Name of the controller.

routeValuesobject

The route values.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager", new {id = 1})
)

Sets the action, controller and route values for the upload operation

C#
public FileManagerBuilder UploadUrl(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

Name of the action.

controllerNamestring

Name of the controller.

routeValuesRouteValueDictionary

The route values.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager", new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)

Sets the action and controller for the upload operation

C#
public FileManagerBuilder UploadUrl(string actionName, string controllerName)
Parameters:actionNamestring

Name of the action.

controllerNamestring

Name of the controller.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager")
)

Sets the action, controller and route values for the upload operation

C#
public FileManagerBuilder UploadUrl(string value)
Parameters:valuestring

The value that configures the uploadurl.

Returns:

FileManagerBuilder

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager", new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)
C#
public FileManagerBuilder UploadUrl<TController>(Expression<Action<TController>> controllerAction) where TController : Controller
Parameters:controllerActionExpression<Action<TController>>Returns:

FileManagerBuilder

Configures every view registered for the FileManager.

C#
public FileManagerBuilder Views(Action<FileManagerViewsSettingsBuilder> configurator)
Parameters:configuratorAction<FileManagerViewsSettingsBuilder>

The action that configures the views.

Returns:

FileManagerBuilder

Configures the width of the FileManager.

C#
public FileManagerBuilder Width(double value)
Parameters:valuedouble

The value that configures the width.

Returns:

FileManagerBuilder