Back to Devexpress

WebChartControl.CallbackStateSave Event

aspnet-devexpress-dot-xtracharts-dot-web-dot-webchartcontrol-cae56845.md

latest2.7 KB
Original Source

WebChartControl.CallbackStateSave Event

Occurs when a chart saves its view state between multiple callbacks.

Namespace : DevExpress.XtraCharts.Web

Assembly : DevExpress.XtraCharts.v25.2.Web.dll

NuGet Package : DevExpress.Web.Visualization

Declaration

csharp
public event CallbackStateSaveEventHandler CallbackStateSave
vb
Public Event CallbackStateSave As CallbackStateSaveEventHandler

Event Data

The CallbackStateSave event's data class is CallbackStateSaveEventArgs. The following properties provide information specific to this event:

PropertyDescription
ChartGets the chart for which the event was raised. Inherited from CallbackStateEventArgs.

The event data class exposes the following methods:

MethodDescription
SetPropertyValue(String, Object)Sets a new value for the specified property on the WebChartControl.CallbackStateSave event.

Remarks

Handle the CallbackStateSave and WebChartControl.CallbackStateLoad events to manually decide which property values should be passed between a server and a client on callbacks. To set a property value to be passed, use the CallbackStateSaveEventArgs.SetPropertyValue method. To load a property value, use the CallbackStateLoadEventArgs.GetPropertyValue method.

Note

The CallbackStateSave and CallbackStateLoad events are raised only if the WebChartControl.SaveStateOnCallbacks property is set to true.

See Also

WebChartControl Class

WebChartControl Members

DevExpress.XtraCharts.Web Namespace