Back to Devexpress

ASPxGridBase.EnableCallbackCompression Property

aspnet-devexpress-dot-web-dot-aspxgridbase-efcb45e2.md

latest2.4 KB
Original Source

ASPxGridBase.EnableCallbackCompression Property

Gets or sets whether callback compression is enabled.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool EnableCallbackCompression { get; set; }
vb
<DefaultValue(True)>
Public Property EnableCallbackCompression As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true, to enable callback compression; otherwise, false.

|

Remarks

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

When operating via callbacks, the grid 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 grid 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 grid 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.

Note

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

Note

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

See Also

ASPxGridBase Class

ASPxGridBase Members

DevExpress.Web Namespace