All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

QueryBuilderHtmlContentBuilder.Bind(QueryBuilderModel) Method

Passes the specified model to the Web Query Builder.

Namespace: DevExpress.AspNetCore.Reporting.QueryBuilder

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

Declaration

public QueryBuilderHtmlContentBuilder Bind(
    QueryBuilderModel model
)
Public Function Bind(
    model As QueryBuilderModel
) As QueryBuilderHtmlContentBuilder

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