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

Defines the fluent API for configuring EditorFileBrowserSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorFileBrowserSettingsBuilder

Inheritance: objectEditorFileBrowserSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

EditorFileBrowserSettingsBuilder method.

C#
public EditorFileBrowserSettingsBuilder(EditorFileBrowserSettings container)
Parameters:containerEditorFileBrowserSettings

Properties

Gets the settings being configured.

C#
protected EditorFileBrowserSettings Container { get; }

Methods

Configures the URL for directory create operation.

C#
public EditorFileBrowserSettingsBuilder Create(Action<EditorFileBrowserOperationBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserOperationBuilder>

The action which configures the Create Action.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Create(create =&gt; create.Action("CreateDirectory","Home"))
)
)

Sets the Action, Controller, and routeValues for directory create operation.

C#
public EditorFileBrowserSettingsBuilder Create(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesobject

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Create("CreateDirectory","Home", new { id = ViewData["id"] })
)
)

Sets the Action, Controller, and routeValues for directory create operation.

C#
public EditorFileBrowserSettingsBuilder Create(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesRouteValueDictionary

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Create("CreateDirectory","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)

Sets the Action and Controller that will handle the directory creation.

C#
public EditorFileBrowserSettingsBuilder Create(string actionName, string controllerName)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Create("CreateDirectory","Home")
)
)

Configures the URL for the file or directory destroy operation.

C#
public EditorFileBrowserSettingsBuilder Destroy(Action<EditorFileBrowserOperationBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserOperationBuilder>

The action which configures the Destroy Action.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Destroy(destroy =&gt; destroy.Action("Delete","Home"))
)
)

Sets the Action, Controller, and routeValues for file or directory destroy operation.

C#
public EditorFileBrowserSettingsBuilder Destroy(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesobject

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Destroy("Destroy","Home", new { id = ViewData["id"] })
)
)

Sets the Action, Controller, and routeValues for file or directory destroy operation.

C#
public EditorFileBrowserSettingsBuilder Destroy(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesRouteValueDictionary

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Destroy("Destroy","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)

Sets the Action and Controller that will handle the file or directory deletion.

C#
public EditorFileBrowserSettingsBuilder Destroy(string actionName, string controllerName)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Destroy("Delete","Home")
)
)

Configures the URL for serving the original file.

C#
public EditorFileBrowserSettingsBuilder File(Action<EditorFileBrowserOperationBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserOperationBuilder>

The action which configures the File Action.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.File(file =&gt; file.Action("File","Home"))
)
)

Sets the Action, Controller, and routeValues responsible for serving the original file.

C#
public EditorFileBrowserSettingsBuilder File(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesobject

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.File("File","Home", new { id = ViewData["id"] })
)
)

Sets the Action, Controller, and routeValues responsible for serving the original file.

C#
public EditorFileBrowserSettingsBuilder File(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesRouteValueDictionary

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.File("File","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)

Sets the Action and Controller responsible for serving the original file.

C#
public EditorFileBrowserSettingsBuilder File(string actionName, string controllerName)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.File("File","Home")
)
)

Sets the URL responsible for serving the original file. A file name placeholder should be specified. By default the placeholder value is URL encoded. If this is not desired, use a function.

C#
public EditorFileBrowserSettingsBuilder File(string url)
Parameters:urlstring

The string URL.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.File("~/shared/UserFiles/Images/{0}")
)
)

Defines the allowed file extensions.

C#
public EditorFileBrowserSettingsBuilder FileTypes(string value)
Parameters:valuestring

The value for FileTypes

Returns:

EditorFileBrowserSettingsBuilder

Returns the current EditorFileBrowserSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.FileTypes("*.zip")
)
)

Defines texts shown within the file browser.

C#
public EditorFileBrowserSettingsBuilder Messages(Action<EditorFileBrowserMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserMessagesSettingsBuilder>

The EditorFileBrowserMessagesSettingsBuilder for the messages setting.

Returns:

EditorFileBrowserSettingsBuilder

Returns the current instance of EditorFileBrowserSettingsBuilder .

Defines the initial folder to display, relative to the root.

C#
public EditorFileBrowserSettingsBuilder Path(string value)
Parameters:valuestring

The value for Path

Returns:

EditorFileBrowserSettingsBuilder

Returns the current EditorFileBrowserSettingsBuilder instance.

Configures the URL for remote file read operation.

C#
public EditorFileBrowserSettingsBuilder Read(Action<EditorFileBrowserOperationBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserOperationBuilder>

The action which configures the Read Action.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Read(read =&gt; read.Action("ReadFiles","Home"))
)
)

Sets the Action, Controller, and routeValues for remote file retrieval.

C#
public EditorFileBrowserSettingsBuilder Read(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesobject

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Read("ReadFiles","Home", new { id = ViewData["id"] })
)
)

Sets the Action, Controller, and routeValues for remote file retrieval.

C#
public EditorFileBrowserSettingsBuilder Read(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesRouteValueDictionary

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Read("ReadFiles","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)

Sets the Action and Controller for remote file retrieval.

C#
public EditorFileBrowserSettingsBuilder Read(string actionName, string controllerName)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Read("ReadFiles","Home")
)
)

Set the object responsible for describing the file raw data format.

C#
public EditorFileBrowserSettingsBuilder Schema(Action<EditorFileBrowserSchemaSettingsBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserSchemaSettingsBuilder>

The EditorFileBrowserSchemaSettingsBuilder for the schema setting.

Returns:

EditorFileBrowserSettingsBuilder

Returns the current instance of EditorFileBrowserSettingsBuilder .

Specifies the settings for loading and saving data.

C#
public EditorFileBrowserSettingsBuilder Transport(Action<EditorFileBrowserTransportSettingsBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserTransportSettingsBuilder>

The EditorFileBrowserTransportSettingsBuilder for the transport setting.

Returns:

EditorFileBrowserSettingsBuilder

Returns the current instance of EditorFileBrowserSettingsBuilder .

Configures the URL for files uplaod operation.

C#
public EditorFileBrowserSettingsBuilder Upload(Action<EditorFileBrowserOperationBuilder> configurator)
Parameters:configuratorAction<EditorFileBrowserOperationBuilder>

The action which configures the Upload Action.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Upload(upload =&gt; upload.Action("UploadFiles","Home"))
)
)

Sets the Action, Controller, and routeValues for uploading new files.

C#
public EditorFileBrowserSettingsBuilder Upload(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesobject

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Upload("UploadFiles","Home", new { id = ViewData["id"] })
)
)

Sets the Action, Controller, and routeValues for uploading new files.

C#
public EditorFileBrowserSettingsBuilder Upload(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

routeValuesRouteValueDictionary

Route values.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Upload("UploadFiles","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)

Sets the Action and Controller that will handle the new files upload.

C#
public EditorFileBrowserSettingsBuilder Upload(string actionName, string controllerName)
Parameters:actionNamestring

Name of the Action.

controllerNamestring

Name of the Controller.

Returns:

EditorFileBrowserSettingsBuilder

The current EditorFileBrowserSettingsBuilder instance to support method chaining.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser =&gt; fileBrowser
.Upload("UploadFiles","Home")
)
)