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 instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
            
                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>

The lambda which configures the data source

RETURNS

Returns the current FileManagerBuilder instance.

Example

Razor
 
                @(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 instance.

Example

Razor
 
                @(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 instance.

Height(System.Double)

Configures the height of the FileManager.

Parameters

value - System.Double

The value for Height

RETURNS

Returns the current 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 instance.

Resizable(System.Boolean)

Configures the resizable features of the FileManager.

Parameters

value - System.Boolean

The value for Resizable

RETURNS

Returns the current 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 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>

The configurator for the upload setting.

RETURNS

Returns the current instance of FileManagerBuilder .

Toolbar(System.Action)

Configures the Toolbar of the FileManager

Parameters

configurator - System.Action<FileManagerToolbarSettingsBuilder>

The configurator for the toolbar setting.

RETURNS

Returns the current instance of 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 .

Dialogs(System.Action)

Specifies the composite Dialog widgets of the FileManager.

Parameters

configurator - System.Action<FileManagerDialogsSettingsBuilder>

The configurator for the dialogs setting.

RETURNS

Returns the current instance of FileManagerBuilder .

ContextMenu(System.Action)

Configures the ContextMenu of the FileManager.

Parameters

configurator - System.Action<FileManagerContextMenuSettingsBuilder>

The configurator for the contextmenu setting.

RETURNS

Returns the current instance of 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 .

Views(System.Action)

Configures every view registered for the FileManager.

Parameters

configurator - System.Action<FileManagerViewsSettingsBuilder>

The configurator for the views setting.

RETURNS

Returns the current instance of FileManagerBuilder .

PreviewPane(System.Action)

Configures the Preview Pane of the FileManager.

Parameters

configurator - System.Action<FileManagerPreviewPaneSettingsBuilder>

The configurator for the previewpane setting.

RETURNS

Returns the current instance of FileManagerBuilder .

Configures or disables the Breadcrumb component.

Parameters

configurator - System.Action<FileManagerBreadcrumbSettingsBuilder>

The configurator for the breadcrumb setting.

RETURNS

Returns the current instance of FileManagerBuilder .

Configures or disables the Breadcrumb component.

Parameters

enabled - System.Boolean

Enables or disables the breadcrumb option.

RETURNS

Returns the current instance of FileManagerBreadcrumbSettingsBuilder .

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.

RETURNS

Returns the current instance of FileManagerBuilder .

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<FileManagerEventBuilder>

The client events action.

RETURNS

Returns the current FileManagerBuilder instance.

Example

Razor
 
            @(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 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.