EditorFileBrowserSettingsBuilder
Methods
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,Microsoft.AspNetCore.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 - Microsoft.AspNetCore.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"))
)
)
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,Microsoft.AspNetCore.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 - Microsoft.AspNetCore.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"))
)
)
File(System.String,System.String)
Sets the Action and Controller responsible for serving the original file.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
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,Microsoft.AspNetCore.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 - Microsoft.AspNetCore.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"))
)
)
Read(System.String,System.String)
Sets the Action and Controller for remote file retrieval.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser => fileBrowser
.Read("ReadFiles","Home")
)
)
Read(System.String,System.String,System.Object)
Sets the Action, Controller, and routeValues for remote file retrieval.
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
.Read("ReadFiles","Home", new { id = ViewData["id"] })
)
)
Read(System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)
Sets the Action, Controller, and routeValues for remote file retrieval.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary
Route values.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.FileBrowser(fileBrowser => fileBrowser
.Read("ReadFiles","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)
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"))
)
)
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,Microsoft.AspNetCore.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 - Microsoft.AspNetCore.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"))
)
)
FileTypes(System.String)
Defines the allowed file extensions.
Parameters
value - System.String
The value for FileTypes
Path(System.String)
Defines the initial folder to display, relative to the root.
Parameters
value - System.String
The value for Path
Transport(System.Action)
Specifies the settings for loading and saving data.
Parameters
configurator - System.Action<EditorFileBrowserTransportSettingsBuilder>
The configurator for the transport setting.
Schema(System.Action)
Set the object responsible for describing the file raw data format.
Parameters
configurator - System.Action<EditorFileBrowserSchemaSettingsBuilder>
The configurator for the schema setting.
Messages(System.Action)
Defines texts shown within the file browser.
Parameters
configurator - System.Action<EditorFileBrowserMessagesSettingsBuilder>
The configurator for the messages setting.