Skip to main content

ASPxMenuBase.EnableCallbackCompression Property

Gets or sets whether callback result compression is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public bool EnableCallbackCompression { get; set; }

Property Value

Type Default Description
Boolean true

true to enable callback result compression; otherwise, false.


This property is in effect if the ASPxMenuBase.EnableCallBacks property is set to true.

When operating via callbacks, the ASPxMenuBase control enables callback results generated for the control on the server to be sent compressed for compression-enabled browsers, improving application performance. Callback result compression provides faster transmission time between the server side and compression-enabled browsers.

When callback result compression is enabled, the ASPxMenuBase checks whether the target browser that sent the requested callback is compression-enabled (by analyzing if the Accept-Encoding request header matches the gzip or deflate value). If content encoding is allowed by the browser, the ASPxMenuBase compresses (using the corresponding encoding scheme) the callback result as it is generated for the control on the server, and sends the compressed response to the browser.


The EnableCallbackCompression property is not in effect if IIS HTTP compression is enabled.


The callback compression is enabled for the entire web site by default. To learn more see the Callback Compression topic.

See Also