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

IQueryBuilderClientSideModelGenerator Interface

In This Article

A service used to generate a client-side model of the Query Builder control.

Namespace: DevExpress.XtraReports.Web.QueryBuilder.Services

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

public interface IQueryBuilderClientSideModelGenerator

#Example

The following code implements the controller action and returns the Query Builder model. For more information on ASP.NET Query Builder, refer to the following help topic: Query Builder.

  public IActionResult Index(
          [FromServices] IQueryBuilderClientSideModelGenerator queryBuilderClientSideModelGenerator)
  {
      var newDataConnectionName = "NWindConnection";
      var queryBuilderModel = queryBuilderClientSideModelGenerator.GetModel(newDataConnectionName);
      return View(queryBuilderModel);
  }

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

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

See Also