PivotGridSettings.CustomSaveCallbackState Property

Allows you to preserve the PivotGrid's callback state in a custom manner.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public PivotGridCallbackStateEventHandler CustomSaveCallbackState { get; set; }
Public Property CustomSaveCallbackState As PivotGridCallbackStateEventHandler

Property Value

Type Description
PivotGridCallbackStateEventHandler

A PivotGridCallbackStateEventHandler delegate method allowing you to implement custom processing.

Remarks

By default, the PivotGrid stores its intermediate state (callback state) in a specific hidden CallbackState field within a web page. In some cases, especially when the PivotGrid is connected to a huge OLAP cube, this state can be rather large, thereby affecting your web application performance. To reduce the web page size, you can store the PivotGrid's callback state in a custom manner, for instance, in the Session object or a static variable. For this purpose, you should handle the CustomSaveCallbackState and PivotGridSettings.CustomLoadCallbackState events.

Handling the CustomSaveCallbackState event, you can obtain the PivotGrid's callback state (via the PivotGridCallbackStateEventArgs.CallbackState property) and save it manually. Note that you should set the PivotGridCallbackStateEventArgs.Handled property to true within the event's handler, to avoid the default operation of storing the callback state within the web page's CallbackState hidden field.

See Also