Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

QueryBuilderHtmlContentBuilder.Bind(QueryBuilderModel) Method

Passes the specified model to the Web Query Builder.

Namespace: DevExpress.AspNetCore.Reporting.QueryBuilder

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

NuGet Package: DevExpress.AspNetCore.Reporting

#Declaration

#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