All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
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.

MVCxClientBinaryImage.BeginCallback Event

Occurs when you initiate a callback to the server.

Declaration

BeginCallback: ASPxClientEvent<MVCxClientBeginCallbackEventHandler<MVCxClientBinaryImage>>

Event Data

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

Property Description
command Gets a command name that identifies which client action forced a callback to occur. Inherited from ASPxClientBeginCallbackEventArgs.
customArgs Gets an object containing specific information (if any, as name/value pairs) that should be passed as a request parameter from the client to the server side for further processing.

Remarks

Use the BeginCallback and EndCallback events to perform specific actions on the client side the extension processes a callback on the server. You can use the BeginCallback event's customArgs parameter to pass information from the client to the server.

<script type="text/javascript">
    function onBeginCallback(s, e) {
        e.customArgs["ImageSize"] = 100;
    }
</script>
...
@Html.DevExpress().BinaryImage(settings => {
    settings.Width = Model.Width;
    settings.Height = Model.Height;
    settings.Name = "BinaryImage";
    settings.Properties.ClientSideEvents.BeginCallback = "onBeginCallback";
}).Bind().GetHtml()

Online Demo

See Also