MVCxClientBinaryImage.BeginCallback Event

Occurs when you initiate a callback to the server.


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.


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;
@Html.DevExpress().BinaryImage(settings => {
    settings.Width = Model.Width;
    settings.Height = Model.Height;
    settings.Name = "BinaryImage";
    settings.Properties.ClientSideEvents.BeginCallback = "onBeginCallback";

Online Demo

See Also