GridSettingsBase.EnableCallbackCompression Property
Gets or sets whether callback compression is enabled.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to enable callback compression; otherwise, false. |
Remarks
The GridView extension enables callback results generated for the grid on the server to be sent in compressed form 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
Callback compression is enabled for the entire web site by default. To learn more see the Callback Compression topic.