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
public QueryBuilderHtmlContentBuilder Bind(
QueryBuilderModel model
)
#Parameters
Name | Type | Description |
---|---|---|
model | Query |
The model to be passed to the Query Builder. |
#Returns
Type | Description |
---|---|
Query |
A Query |
#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: