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

EditorFileBrowserSettingsBuilder

Methods

Read(System.String,System.String)

Sets the Action and Controller for remote file retrieval.

Parameters

actionName - System.String

The name of the Action.

controllerName - System.String

The name of the Controller.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Read("ReadFiles","Home")
                        )
            )

Read(System.String,System.String,System.Web.Routing.RouteValueDictionary)

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

Parameters

actionName - System.String

The name of the Action.

controllerName - System.String

The name of the Controller.

routeValues - System.Web.Routing.RouteValueDictionary

The route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Read("ReadFiles","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
                        )
            )

Read(System.String,System.String,System.Object)

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

Parameters

actionName - System.String

The name of the Action.

controllerName - System.String

The name of the Controller.

routeValues - System.Object

The route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Read("ReadFiles","Home", new { id = ViewData["id"] })
                        )
            )

Read(System.Action)

Configures the URL for remote file read operation.

Parameters

configurator - System.Action<EditorFileBrowserOperationBuilder>

The action which configures the Read Action.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Read(read => read.Action("ReadFiles","Home"))
                        )
            )

File(System.String,System.String)

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

Parameters

actionName - System.String

The name of the Action.

controllerName - System.String

The name of the Controller.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .File("File","Home")
                        )
            )

File(System.String)

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.

Parameters

url - System.String

The string URL.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .File("~/shared/UserFiles/Images/{0}")
                        )
            )

File(System.String,System.String,System.Web.Routing.RouteValueDictionary)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Web.Routing.RouteValueDictionary

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .File("File","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
                        )
            )

File(System.String,System.String,System.Object)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Object

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .File("File","Home", new { id = ViewData["id"] })
                        )
            )

File(System.Action)

Configures the URL for serving the original file.

Parameters

configurator - System.Action<EditorFileBrowserOperationBuilder>

The action which configures the File Action.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .File(file => file.Action("File","Home"))
                        )
            )

Upload(System.String,System.String)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Upload("UploadFiles","Home")
                        )
            )

Upload(System.String,System.String,System.Web.Routing.RouteValueDictionary)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Web.Routing.RouteValueDictionary

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Upload("UploadFiles","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
                        )
            )

Upload(System.String,System.String,System.Object)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Object

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Upload("UploadFiles","Home", new { id = ViewData["id"] })
                        )
            )

Upload(System.Action)

Configures the URL for files uplaod operation.

Parameters

configurator - System.Action<EditorFileBrowserOperationBuilder>

The action which configures the Upload Action.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Upload(upload => upload.Action("UploadFiles","Home"))
                        )
            )

Destroy(System.String,System.String)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Destroy("Delete","Home")
                        )
            )

Destroy(System.String,System.String,System.Web.Routing.RouteValueDictionary)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Web.Routing.RouteValueDictionary

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Destroy("Destroy","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
                        )
            )

Destroy(System.String,System.String,System.Object)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Object

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Destroy("Destroy","Home", new { id = ViewData["id"] })
                        )
            )

Destroy(System.Action)

Configures the URL for the file or directory destroy operation.

Parameters

configurator - System.Action<EditorFileBrowserOperationBuilder>

The action which configures the Destroy Action.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Destroy(destroy => destroy.Action("Delete","Home"))
                        )
            )

Create(System.String,System.String)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Create("CreateDirectory","Home")
                        )
            )

Create(System.String,System.String,System.Web.Routing.RouteValueDictionary)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Web.Routing.RouteValueDictionary

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Create("CreateDirectory","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
                        )
            )

Create(System.String,System.String,System.Object)

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

Parameters

actionName - System.String

Name of the Action.

controllerName - System.String

Name of the Controller.

routeValues - System.Object

Route values.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Create("CreateDirectory","Home", new { id = ViewData["id"] })
                        )
            )

Create(System.Action)

Configures the URL for directory create operation.

Parameters

configurator - System.Action<EditorFileBrowserOperationBuilder>

The action which configures the Create Action.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .Create(create => create.Action("CreateDirectory","Home"))
                        )
            )

FileTypes(System.String)

Defines the allowed file extensions. Default: "."

Parameters

value - System.String

The file types.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .FileBrowser(fileBrowser => fileBrowser
                            .FileTypes("*.zip")
                        )
            )

In this article
Not finding the help you need?