IQueryBuilderClientSideModelGenerator Interface
A service used to generate a client-side model of the Query Builder control.
Namespace: DevExpress.XtraReports.Web.QueryBuilder.Services
Assembly: DevExpress.XtraReports.v24.1.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
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.
See Also