New to Telerik UI for ASP.NET Core? Download free 30-day trial

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.

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.

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.

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.

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.

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.

Example


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

UploadUrl(System.Linq.Expressions.Expression)

Parameters

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

DataSource(System.Action)

Sets the data source configuration of the DataSource.

Parameters

configurator - System.Action<FileManagerDataSourceBuilder>

The lambda which configures the data source

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

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

Height(System.Double)

Configures the height of the FileManager.

Parameters

value - System.Double

The value for Height

InitialView(System.String)

Configures the initial view of the FileManager.

Parameters

value - System.String

The value for InitialView

Resizable(System.Boolean)

Configures the resizable features of the FileManager.

Parameters

value - System.Boolean

The value for Resizable

Draggable(System.Boolean)

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

Parameters

value - System.Boolean

The value for Draggable

UploadUrl(System.String)

Sets the upload url for the Upload widget.

Parameters

value - System.String

The value for UploadUrl

Upload(System.Action)

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

Parameters

configurator - System.Action<FileManagerUploadSettingsBuilder>

The configurator for the upload setting.

Toolbar(System.Action)

Configures the Toolbar of the FileManager

Parameters

configurator - System.Action<FileManagerToolbarSettingsBuilder>

The configurator for the toolbar setting.

Toolbar(System.Boolean)

Configures the Toolbar of the FileManager

Parameters

enabled - System.Boolean

Enables or disables the toolbar option.

Dialogs(System.Action)

Specifies the composite Dialog widgets of the FileManager.

Parameters

configurator - System.Action<FileManagerDialogsSettingsBuilder>

The configurator for the dialogs setting.

ContextMenu(System.Action)

Configures the ContextMenu of the FileManager.

Parameters

configurator - System.Action<FileManagerContextMenuSettingsBuilder>

The configurator for the contextmenu setting.

ContextMenu(System.Boolean)

Configures the ContextMenu of the FileManager.

Parameters

enabled - System.Boolean

Enables or disables the contextmenu option.

Views(System.Action)

Configures every view registered for the FileManager.

Parameters

configurator - System.Action<FileManagerViewsSettingsBuilder>

The configurator for the views setting.

PreviewPane(System.Action)

Configures the Preview Pane of the FileManager.

Parameters

configurator - System.Action<FileManagerPreviewPaneSettingsBuilder>

The configurator for the previewpane setting.

Configures or disables the Breadcrumb component.

Parameters

configurator - System.Action<FileManagerBreadcrumbSettingsBuilder>

The configurator for the breadcrumb setting.

Configures or disables the Breadcrumb component.

Parameters

enabled - System.Boolean

Enables or disables the breadcrumb option.

Messages(System.Action)

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

Parameters

configurator - System.Action<FileManagerMessagesSettingsBuilder>

The configurator for the messages setting.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<FileManagerEventBuilder>

The client events action.

Example


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

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

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

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

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

The HTML attributes.

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.

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.

Render()

Renders the component in place.

ToHtmlString()

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

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

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

Parameters

value - System.Boolean
In this article
Not finding the help you need?