Skip to main content

ASPxPivotGrid.SaveLayoutToString(PivotGridWebOptionsLayout) Method

Saves the pivot grid layout to the specified string, using the specified settings.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public string SaveLayoutToString(
    PivotGridWebOptionsLayout optionsLayout
)

Parameters

Name Type Description
optionsLayout PivotGridWebOptionsLayout

A PivotGridWebOptionsLayout object that specifies which options should be saved.

Returns

Type Description
String

A String that specifies the string to which the pivot grid layout has been written.

Remarks

Use this SaveLayoutToString method overload to save specific settings of a pivot grid to a string. These settings can be restored later, via the ASPxPivotGrid.LoadLayoutFromString method.

The optionsLayout parameter determines which options should be saved to the string. For the pivot grid control, you can create a PivotGridWebOptionsLayout object, customize it as required, and then pass it, as the optionsLayout parameter. Only options enabled in this object will be saved.

To save all the options, pass null (Nothing in Visual Basic) or the static PivotGridWebOptionsLayout.FullLayout property as the optionsLayout parameter.

The SaveLayoutToString overload without the optionsLayout parameter saves only options specified by the ASPxPivotGrid.OptionsLayout property.

Note

The expansion states of field values are not saved by the SaveLayoutToString method.

See Also