MVCxClientQueryBuilder.SaveCommandExecuted Event

Occurs after executing the Save command on the client.

Declaration

SaveCommandExecuted: ASPxClientEvent<MVCxClientQueryBuilderSaveCommandExecutedEventHandler<MVCxClientQueryBuilder>>

Event Data

The SaveCommandExecuted event's data class is MVCxClientQueryBuilderSaveCommandExecutedEventArgs. The following properties provide information specific to this event:

Property Description
Result Specifies the Save command execution result.

Remarks

You can use the MVCxQueryBuilderClientSideEvents.SaveCommandExecuted event to process the saving query result on the client.

<script>
    function onSaveCommandExecuted(s, e) {
        var result = JSON.parse(e.Result);
        if (result.queryValidationError) {
            alert(result.queryValidationError);
        }
    }

@Html.DevExpress().QueryBuilder(settings => {
    ...
    settings.ClientSideEvents.SaveCommandExecuted = "onSaveCommandExecuted";
}).Bind("NorthwindConnection").GetHtml()

See the Saving Queries topic for more information.

See Also