Skip to main content
All docs
V23.2

QueryBuilderHtmlContentBuilder.Bind(QueryBuilderModel) Method

Passes the specified model to the Web Query Builder.

Namespace: DevExpress.AspNetCore.Reporting.QueryBuilder

Assembly: DevExpress.AspNetCore.Reporting.v23.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

Declaration

public QueryBuilderHtmlContentBuilder Bind(
    QueryBuilderModel model
)

Parameters

Name Type Description
model QueryBuilderModel

The model to be passed to the Query Builder.

Returns

Type Description
QueryBuilderHtmlContentBuilder

A QueryBuilderHtmlContentBuilder instance for use in method chaining.

Remarks

Use the IQueryBuilderClientSideModelGenerator.GetModel method to create a model in the controller and pass it to the Bind method:

@model DevExpress.XtraReports.Web.QueryBuilder.QueryBuilderModel
// ...
@(Html.DevExpress()
    .QueryBuilder("webQueryBuilder")
    .Height("400px")
    .Bind(Model))

The complete sample project is available in the following DevExpress Examples repository on GitHub:

View Example: How to Use the Query Builder Control in an ASP.NET Core Application

See Also