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

EditorImageBrowserOperationBuilder

Methods

Route(System.Web.Routing.RouteValueDictionary)

Sets the route values for the image browser operation.

Parameters

routeValues - System.Web.Routing.RouteValueDictionary

Route values

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home").Route(new RouteValueDictionary { { "id", ViewData["id"] } }))
                        )
            )

Action(System.String,System.String,System.Object)

Sets the action, contoller and route values for the image browser operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller name

routeValues - System.Object

Route values

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home", new { id = ViewData["id"] }))
                        )
            )

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

Sets the action, contoller and route values for the image browser operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller name

routeValues - System.Web.Routing.RouteValueDictionary

Route values

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home", new RouteValueDictionary { { "id", ViewData["id"] } }))
                        )
            )

Action(System.String,System.String)

Sets the action and contoller values for the image browser operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller name

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home"))
                        )
            )

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

Sets the route name and values for the image browser operation.

Parameters

routeName - System.String

Route name

routeValues - System.Web.Routing.RouteValueDictionary

Route values

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home").Route("Default", new RouteValueDictionary { { "id", ViewData["id"] } }))
                        )
            )

Route(System.String,System.Object)

Sets the route name and values for the image browser operation.

Parameters

routeName - System.String

Route name

routeValues - System.Object

Route values

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home").Route("Default", new { id = ViewData["id"] }))
                        )
            )

Route(System.String)

Sets the route name for the image browser operation.

Parameters

routeName - System.String

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Action("ReadImages","Home").Route("Default"))
                        )
            )

Url(System.String)

Specifies an absolute or relative URL for the image browser operation.

Parameters

url - System.String

Absolute or relative URL for the operation

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.Url("/Home/ReadImages"))
                        )
            )

UrlHandler(System.String)

Sets a JavaScript function or the name of a function that returns the URL for the image.

Parameters

handler - System.String

The JavaScript function name

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .ImageBrowser(imageBrowser => imageBrowser
                            .Read(read => read.UrlHandler("getImageUrl"))
                        )
            )

Data(System.String)

Parameters

handler - System.String
In this article
Not finding the help you need?