BootstrapUIWidgetExportSettings.ProxyUrl Property

Specifies the URL of the server-side proxy that streams the resulting file to the end user to enable exporting in IE9 and Safari browsers.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v21.1.dll

Declaration

[DefaultValue("")]
public string ProxyUrl { get; set; }

Property Value

Type Default Description
String

String.Empty

A string specifying the URL of the server-side proxy.

Property Paths

You can access this nested property as listed below:

Object Type Path to ProxyUrl
BootstrapChart
.SettingsExport.ProxyUrl
BootstrapChartBase
.SettingsExport.ProxyUrl
BootstrapCoordinateSystemChart
.SettingsExport.ProxyUrl
BootstrapPieChart
.SettingsExport.ProxyUrl
BootstrapPolarChart
.SettingsExport.ProxyUrl
BootstrapRangeSelector
.SettingsExport.ProxyUrl
BootstrapWebClientUIWidgetEx
.SettingsExport.ProxyUrl

Remarks

Generally, exporting is performed using client-side API in browsers. However, the IE9 and Safari (integrated in Mac OS) browsers do not implement an API for saving files. In this instance, the widget can POST the content to a server-side proxy, which will stream the file back to the end user. To enable this functionality, set the ProxyUrl option to the proxy, which will stream the file to the end user. When implementing the proxy, take the following information into account.

Your proxy will receive a POST request with the following parameters in the request body: fileName, contentType (the MIME type of the file) and base64 (the base-64 encoded file content).

The proxy should return the decoded file with the “Content-Disposition” header set to attachment; filename=””.

See Also