Back to Devexpress

QueryBuilderSettings.SaveCallbackRouteValues Property

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

latest1.8 KB
Original Source

QueryBuilderSettings.SaveCallbackRouteValues Property

Specifies the names of a Controller and an Action which should handle requests from the Query Builder to save queries.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

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

Property Value

TypeDescription
Object

An object containing the Controller and Action names.

|

Remarks

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

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

See the Saving Queries topic for more information on obtaining and processing generated queries.

See Also

Saving Queries

QueryBuilderSettings Class

QueryBuilderSettings Members

DevExpress.Web.Mvc Namespace