SpreadsheetClientSideEvents.BeforeSend Property
Specifies a client function used to customize a web request before it is sent to the server.
Namespace: DevExpress.Web.ASPxSpreadsheet
Assembly: DevExpress.Web.ASPxSpreadsheet.v25.1.dll
NuGet Package: DevExpress.Web.Office
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| String | String.Empty | A JavaScript function. |
Remarks
Use this property to register a client-side handler for the Spreadsheet control’s beforeSend event.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentHolder" runat="Server">
<script>
function onBeforeSend(spreadsheet, e) {
/* ... */
}
</script>
<dx:ASPxSpreadsheet ID="spreadsheet"
runat="server"
ClientSideEvents-BeforeSend="onBeforeSend">
<!-- ... -->
</dx:ASPxSpreadsheet>
</asp:Content>
The function receives the following arguments:
- The client-side Spreadsheet object instance.
- An object that contains event arguments. Use the object’s
requestproperty to access and modify the underlying XMLHttpRequest (for example, add headers).
See Also