PivotGridWebOptionsLayout.DefaultLayout Property
Returns a PivotGridWebOptionsLayout object whose settings indicate that fields should be overridden when saving or restoring the control layout.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v20.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
PivotGridWebOptionsLayout | A PivotGridWebOptionsLayout object whose settings indicate that fields should be overridden when saving or restoring the control layout. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to DefaultLayout |
---|---|---|
ASP.NET Controls and MVC Extensions | ASPxPivotGrid |
|
ASP.NET MVC Extensions | MVCxPivotGrid |
|
Remarks
The pivot grid allows you to select which options to save to (or restore from) a storage when saving (restoring) a layout. For this purpose, ASPxPivotGrid provides specific overloads of its LoadLayoutFrom… and SaveLayoutTo… methods that take a PivotGridWebOptionsLayout object as the optionsLayout parameter. This object determines which settings should be affected.
Pass the DefaultLayout object as the optionsLayout parameter to allow fields contained in the pivot grid to override fields contained in a layout storage when the control layout is saved to this storage, and allow fields contained in the layout storage to override fields contained in the pivot grid when the control layout is restored.
Note
Use the DefaultLayout property for backward compatibility with v10.2 and earlier (for instance, if you are restoring a layout saved with an old version, or saving a layout that will be restored with it).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DefaultLayout property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.