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.GetJsonModelScript(DataConnectionParametersBase, SelectQuery, Int32) Method

Creates a client-side Web Query Builder model based on the specified data and serializes this model to JSON.

Namespace: DevExpress.XtraReports.Web.QueryBuilder.Services

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

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

string GetJsonModelScript(
    DataConnectionParametersBase connectionParameters,
    SelectQuery tableQuery,
    int commandTimeout
)

#Parameters

Name Type Description
connectionParameters DataConnectionParametersBase

A DataConnectionParametersBase descendant that specifies the data connection parameters.

tableQuery SelectQuery

A query that the Query Builder loads on start.

commandTimeout Int32

An integer value that specifies the wait time (in seconds) before an attempt to execute a query terminates and an error occurs.

#Returns

Type Description
String

A JSON string that contains the Web Query builder model.

See Also