Back to Devexpress

QueryBuilderSettings.RouteValues Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-querybuildersettings-88637a0a.md

latest1.7 KB
Original Source

QueryBuilderSettings.RouteValues Property

Defines the routing logic by specifying the names of a Controller and an Action which should handle requests from the Query Builder.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public object RouteValues { get; set; }
vb
Public Property RouteValues As Object

Property Value

TypeDescription
Object

An object containing the Controller and Action names.

|

Remarks

The following code snippet demonstrates how to specify the RouteValues property.

cshtml
@Html.DevExpress().QueryBuilder(settings => {
    settings.Name = "QueryBuilder";
    settings.RouteValues = new { Controller = "QueryBuilder", Action = "Invoke" };
}).Bind("NorthwindConnection").GetHtml()

See the Query Builder - Getting Started section to learn more about adding the Query Builder to an ASP.NET MVC application.

See Also

Query Builder Getting Started

QueryBuilderSettings Class

QueryBuilderSettings Members

DevExpress.Web.Mvc Namespace