Skip to main content

PivotGridSettings.CustomLoadCallbackState Property

Allows you to load the PivotGrid’s callback state, which was previously saved by handling the PivotGridSettings.CustomSaveCallbackState event.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public PivotGridCallbackStateEventHandler CustomLoadCallbackState { get; set; }

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 PivotGridSettings.CustomSaveCallbackState and CustomLoadCallbackState events.

Handling the CustomLoadCallbackState event, you can manually load the previously saved callback state (by assigning it to the PivotGridCallbackStateEventArgs.CallbackState property). Note that you should set the PivotGridCallbackStateEventArgs.Handled property to true within the event’s handler, to avoid the default operation of loading the callback state from the web page’s CallbackState hidden field.

See Also