All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

QueryBuilderClientSideEventsBuilder.BeforeRender(String) Method

Specifies the JavaScript handler function for the client-side BeforeRender event.

Namespace: DevExpress.AspNetCore.Reporting.QueryBuilder

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

Declaration

public QueryBuilderClientSideEventsBuilder BeforeRender(
    string callback
)
Public Function BeforeRender(
    callback As String
) As QueryBuilderClientSideEventsBuilder

Parameters

Name Type Description
callback String

The name of a JavaScript function or the entire JavaScript function code that handles the BeforeRender event.

Returns

Type Description
QueryBuilderClientSideEventsBuilder

A QueryBuilderClientSideEventsBuilder that can be used in method chaining.

Remarks

The BeforeRender event allows you to customize the Query Builder's View Model before it is bound to an HTML element and/or Knockout is activated.

A handler function receives two parameters: the first parameter is the client-side Query Builder object, the second is the Query Builder View Model.

The following code hides the Query Builder's tab panel:

@{ var queryBuilder = Html.DevExpress().QueryBuilder("webQueryBuilder")
                       .Height("400px")
                       .Bind(Model)
                       .ClientSideEvents(configure =>
                       { configure.BeforeRender("BeforeRender"); }); ; }
@queryBuilder
See Also