Skip to main content

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 initiated a callback. 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