Skip to main content
All docs
V21.2

QueryBuilderHtmlContentBuilder.ClientSideEvents(Action<QueryBuilderClientSideEventsBuilder>) Method

Returns the QueryBuilderClientSideEventsBuilder object that allows you to handle the client-side events specific to the Web Query Builder.

Namespace: DevExpress.AspNetCore.Reporting.QueryBuilder

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

Declaration

public QueryBuilderHtmlContentBuilder ClientSideEvents(
    Action<QueryBuilderClientSideEventsBuilder> configure
)

Parameters

Name Type Description
configure Action<QueryBuilderClientSideEventsBuilder>

A Action<T> delegate method that allows you to assign handlers to the client-side events. The delegate parameter is the QueryBuilderClientSideEventsBuilder object, whose methods specify event handlers.

Returns

Type Description
QueryBuilderHtmlContentBuilder

A QueryBuilderClientSideEventsBuilder that can be used to further configure the Query Builder.

Remarks

The following code assigns the SaveQueryRequested JavaScript function as the Web Query Builder’s SaveQueryRequested event handler:

<script>
    function SaveQueryRequested() {
      // ...
    }
</script>
@(Html.DevExpress()
    .QueryBuilder("webQueryBuilder")
    .ClientSideEvents( x => {
        x.SaveQueryRequested("SaveQueryRequested");
    })
    .Height("400px")
    .Bind(Model))
See Also