Skip to content
Christopher Tso edited this page Apr 2, 2016 · 1 revision

Use Case

Save and Load user-defined layouts for any Pivot Grid.

User Instructions

Navigate to Domain Object 1 Pivot

Select Layout > Reset from the menu. This will reset the Pivot Grid layout and create default layouts which you can load.

Developer Refeference

Reserved Names

You can prevent the user from creating profiles that has the same name as one that's in ReservedLayoutNames.

To do this, add the below lines to the XAF module. This example prevents the user from specifying Default1LayoutName or Default2LayoutName as the name.

PivotGridSavedLayout.ReservedLayoutNames.Add(DomainObject1PivotGridSetup.Default1LayoutName, typeof(DomainObject1).Name);
PivotGridSavedLayout.ReservedLayoutNames.Add(DomainObject1PivotGridSetup.Default2LayoutName, typeof(DomainObject1).Name);
Clone this wiki locally