# FileManagerBuilder

## Properties

### WriteAction - Func

## Methods

### UploadUrl(System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

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

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

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

### UploadUrl(System.String,System.String,System.Object)

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

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

##### routeValues - `System.Object`

The route values.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

```
 
                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .UploadUrl("FileManagerUpload", "FileManager", new {id = 1})
                )
             
```

### UploadUrl(System.String,System.String)

Sets the action and controller for the upload operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

```
 
                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .UploadUrl("FileManagerUpload", "FileManager")
                )
             
```

### UploadUrl(Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route values for the upload operation

#### Parameters

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values of the action method.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

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

### UploadUrl(System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route and values for the upload operation

#### Parameters

##### routeName - `System.String`

Name of the route.

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

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

### UploadUrl(System.String,System.Object)

Sets the route and values for the upload operation

#### Parameters

##### routeName - `System.String`

Name of the route.

##### routeValues - `System.Object`

The route values.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

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

### UploadUrl(System.Linq.Expressions.Expression)

Sets the action for the upload operation

#### Parameters

##### controllerAction - `System.Linq.Expressions.Expression<Action>`

The action.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

```
 
            
                public string CreateUrl@<TController>(Expression@<Action@<TController>> action) where TController: IController{
                     return $"{nameof(HomeController).Replace("Controller", "")}/{nameof(Upload)}";
                }
            
                 @(Html.Kendo().FileManager()
                     .Name("filemanager")
                     .UploadUrl(CreateUrl@<HomeController>(x => x.Index()))
                 )
              
```

### DataSource(System.Action)

Sets the data source configuration of the DataSource.

#### Parameters

##### configurator - System.Action<[FileManagerDataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerdatasourcebuilder)>

The lambda which configures the data source

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

```
 
                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                        dataSource.Read(operation => operation
                            .Type(HttpVerbs.Post)
                            .Action("Read", "FileManagerData")
                        );
                    })
                )
             
```

### DataSource(System.String)

Sets the data source configuration of the DataSource.

#### Parameters

##### dataSourceId - `System.String`

The unique identifier of the DataSource

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

```
 
                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource("myDataSource")
                )
             
```

### Width(System.Double)

Configures the width of the FileManager.

#### Parameters

##### value - `System.Double`

The value for Width

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

### Height(System.Double)

Configures the height of the FileManager.

#### Parameters

##### value - `System.Double`

The value for Height

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

### InitialView(System.String)

Configures the initial view of the FileManager.

#### Parameters

##### value - `System.String`

The value for InitialView

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

### Resizable(System.Boolean)

Configures the resizable features of the FileManager.

#### Parameters

##### value - `System.Boolean`

The value for Resizable

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

### Draggable(System.Boolean)

Enables or disables dragging and dropping files from the FileManager view(GridView, ListView) to the TreeView and vice versa.

#### Parameters

##### value - `System.Boolean`

The value for Draggable

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

### UploadUrl(System.String)

#### Parameters

##### value - `System.String`

### Upload(System.Action)

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

#### Parameters

##### configurator - System.Action<[FileManagerUploadSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanageruploadsettingsbuilder)>

The configurator for the upload setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### Toolbar(System.Action)

Configures the Toolbar of the FileManager

#### Parameters

##### configurator - System.Action<[FileManagerToolbarSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagertoolbarsettingsbuilder)>

The configurator for the toolbar setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### Toolbar(System.Boolean)

Configures the Toolbar of the FileManager

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the toolbar option.

#### RETURNS

Returns the current instance of [FileManagerToolbarSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagertoolbarsettingsbuilder) .

### Dialogs(System.Action)

Specifies the composite Dialog widgets of the FileManager.

#### Parameters

##### configurator - System.Action<[FileManagerDialogsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerdialogssettingsbuilder)>

The configurator for the dialogs setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### ContextMenu(System.Action)

Configures the ContextMenu of the FileManager.

#### Parameters

##### configurator - System.Action<[FileManagerContextMenuSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagercontextmenusettingsbuilder)>

The configurator for the contextmenu setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### ContextMenu(System.Boolean)

Configures the ContextMenu of the FileManager.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the contextmenu option.

#### RETURNS

Returns the current instance of [FileManagerContextMenuSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagercontextmenusettingsbuilder) .

### Views(System.Action)

Configures every view registered for the FileManager.

#### Parameters

##### configurator - System.Action<[FileManagerViewsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerviewssettingsbuilder)>

The configurator for the views setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### PreviewPane(System.Action)

Configures the Preview Pane of the FileManager.

#### Parameters

##### configurator - System.Action<[FileManagerPreviewPaneSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerpreviewpanesettingsbuilder)>

The configurator for the previewpane setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### Breadcrumb(System.Action)

Configures or disables the Breadcrumb component.

#### Parameters

##### configurator - System.Action<[FileManagerBreadcrumbSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbreadcrumbsettingsbuilder)>

The configurator for the breadcrumb setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### Breadcrumb(System.Boolean)

Configures or disables the Breadcrumb component.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the breadcrumb option.

#### RETURNS

Returns the current instance of [FileManagerBreadcrumbSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbreadcrumbsettingsbuilder) .

### Messages(System.Action)

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

#### Parameters

##### configurator - System.Action<[FileManagerMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagermessagessettingsbuilder)>

The configurator for the messages setting.

#### RETURNS

Returns the current instance of [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) .

### Events(System.Action)

Configures the client-side events.

#### Parameters

##### configurator - System.Action<[FileManagerEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagereventbuilder)>

The client events action.

#### RETURNS

Returns the current [FileManagerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/filemanagerbuilder) instance.

#### Example

```
 
            @(Html.Kendo().FileManager()
                  .Name("FileManager")
                  .Events(events => events
                      .Navigate("onNavigate")
                  )
            )
             
```

### ToComponent()

Returns the internal view component.

#### RETURNS

The  instance that represents the component.

### Expression(System.String)

Sets the name of the component.

#### Parameters

##### modelExpression - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

#### Parameters

##### modelExplorer - `Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer`

The name.

#### RETURNS

Returns the current  instance.

### Name(System.String)

Sets the name of the component.

#### Parameters

##### componentName - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

#### Parameters

##### deferred - `System.Boolean`

#### RETURNS

Returns a [DeferredWidgetBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/deferredwidgetbuilder) instance.

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Object`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Object`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### Render()

Renders the component in place.

### ToHtmlString()

Returns the HTML representation of the component.

### WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

#### Parameters

##### writer - `System.IO.TextWriter`

##### encoder - `System.Text.Encodings.Web.HtmlEncoder`

### ToClientTemplate()

Returns the client template for the component.

### AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

#### Parameters

##### value - `System.Boolean`

#### RETURNS

Returns the current  instance.
