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.

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.v20.2.dll

Declaration

public QueryBuilderHtmlContentBuilder ClientSideEvents(
    Action<QueryBuilderClientSideEventsBuilder> configure
)
Public Function ClientSideEvents(
    configure As Action(Of QueryBuilderClientSideEventsBuilder)
) As QueryBuilderHtmlContentBuilder

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