EditorImageBrowserSettingsBuilder
Methods
Read(System.String,System.String)
Sets the Action and Controller for remote image retrieval.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Read("ReadImages","Home")
)
)
Read(System.String,System.String,System.Web.Routing.RouteValueDictionary)
Sets the Action, Controller, and routeValues for remote image retrieval.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Read("ReadImages","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)
Read(System.String,System.String,System.Object)
Sets the Action, Controller, and routeValues for remote image 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")
.ImageBrowser(imageBrowser => imageBrowser
.Read("ReadImages","Home", new { id = ViewData["id"] })
)
)
Read(System.Action)
Configures the URL for remote image read operation.
Parameters
configurator - System.Action<EditorImageBrowserOperationBuilder>
The action which configures the Read Action.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Read(read => read.Action("ReadImages","Home"))
)
)
Thumbnail(System.String,System.String)
Sets the Action and Controller for retrieving the thumbnail version of the image. If not specified a default image icon will be shown.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Thumbnail("GetThumbnails","Home")
)
)
Thumbnail(System.String,System.String,System.Web.Routing.RouteValueDictionary)
Sets the Action, Controller, and routeValues for retrieving the thumbnail version of the image.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Thumbnail("GetThumbnails","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)
Thumbnail(System.String,System.String,System.Object)
Sets the Action, Controller, and routeValues for retrieving the thumbnail version of the image.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Thumbnail("GetThumbnails","Home", new { id = ViewData["id"] })
)
)
Thumbnail(System.Action)
Configures the URL for retrieving the thumbnail version of the image.
Parameters
configurator - System.Action<EditorImageBrowserOperationBuilder>
The action which configures the Thumbnail Action.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Thumbnail(thumbnail => thumbnail.Action("GetThumbnails","Home"))
)
)
Image(System.String,System.String)
Sets the Action and Controller responsible for serving the original image.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Image("Image","Home")
)
)
Image(System.String)
Sets the URL responsible for serving the original image. A image 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")
.ImageBrowser(imageBrowser => imageBrowser
.Image("~/shared/UserFiles/Images/{0}")
)
)
Image(System.String,System.String,System.Web.Routing.RouteValueDictionary)
Sets the Action, Controller, and routeValues responsible for serving the original image.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Image("Image","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)
Image(System.String,System.String,System.Object)
Sets the Action, Controller, and routeValues responsible for serving the original image.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Image("Image","Home", new { id = ViewData["id"] })
)
)
Image(System.Action)
Configures the URL for serving the original image.
Parameters
configurator - System.Action<EditorImageBrowserOperationBuilder>
The action which configures the Image Action.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Image(image => image.Action("Image","Home"))
)
)
Upload(System.String,System.String)
Sets the Action and Controller that will handle the new images upload. If not specified the Upload button will not be displayed.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Upload("UploadImages","Home")
)
)
Upload(System.String,System.String,System.Web.Routing.RouteValueDictionary)
Sets the Action, Controller, and routeValues for uploading new images.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Upload("UploadImages","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)
Upload(System.String,System.String,System.Object)
Sets the Action, Controller, and routeValues for uploading new images.
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")
.ImageBrowser(imageBrowser => imageBrowser
.Upload("UploadImages","Home", new { id = ViewData["id"] })
)
)
Upload(System.Action)
Configures the URL for images uplaod operation.
Parameters
configurator - System.Action<EditorImageBrowserOperationBuilder>
The action which configures the Upload Action.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Upload(upload => upload.Action("UploadImages","Home"))
)
)
Destroy(System.String,System.String)
Sets the Action and Controller that will handle the image or directory deletion.
Parameters
actionName - System.String
Name of the Action.
controllerName - System.String
Name of the Controller.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Destroy("Delete","Home")
)
)
Destroy(System.String,System.String,System.Web.Routing.RouteValueDictionary)
Sets the Action, Controller, and routeValues for image 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")
.ImageBrowser(imageBrowser => imageBrowser
.Destroy("Destroy","Home", new RouteValueDictionary { { "paramName[0]", "paramValue" } })
)
)
Destroy(System.String,System.String,System.Object)
Sets the Action, Controller, and routeValues for image 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")
.ImageBrowser(imageBrowser => imageBrowser
.Destroy("Destroy","Home", new { id = ViewData["id"] })
)
)
Destroy(System.Action)
Configures the URL for the image or directory destroy operation.
Parameters
configurator - System.Action<EditorImageBrowserOperationBuilder>
The action which configures the Destroy Action.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.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")
.ImageBrowser(imageBrowser => imageBrowser
.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")
.ImageBrowser(imageBrowser => imageBrowser
.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")
.ImageBrowser(imageBrowser => imageBrowser
.Create("CreateDirectory","Home", new { id = ViewData["id"] })
)
)
Create(System.Action)
Configures the URL for directory create operation.
Parameters
configurator - System.Action<EditorImageBrowserOperationBuilder>
The action which configures the Create Action.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.Create(create => create.Action("CreateDirectory","Home"))
)
)
FileTypes(System.String)
Defines the allowed file extensions. Default: ".png, .gif, .jpg, .jpeg"
Parameters
value - System.String
The file types.
Example
@( Html.Kendo().Editor()
.Name("Editor")
.ImageBrowser(imageBrowser => imageBrowser
.FileTypes("*.gif")
)
)