Back to Devexpress

PivotCustomizationExtension Class

aspnetmvc-devexpress-dot-web-dot-mvc-e3d3853a.md

latest3.7 KB
Original Source

PivotCustomizationExtension Class

An extension object that implements the PivotCustomization extension functionality.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public class PivotCustomizationExtension :
    ExtensionBase
vb
Public Class PivotCustomizationExtension
    Inherits ExtensionBase

The following members return PivotCustomizationExtension objects:

Remarks

The PivotCustomizationExtension is a standalone extension that mimics the Customization Form. It can be bound to a PivotGrid extension to substitute for its Customization Form. To bind a PivotCustomizationExtension , provide its constructor with the same PivotGridSettings that were used to initialize the PivotGrid extension.

To be able to automatically fetch the collection of fields from the datasource via the ASPxPivotGrid.RetrieveFields method ( MVCxPivotGrid.RetrieveFields ), bind the PivotCustomizationExtension to the same datasource as the PivotGrid using the PivotCustomizationExtension.Bind or PivotCustomizationExtension.BindToOLAP method.

Use the PivotCustomizationExtensionSettings.AllowFilter and PivotCustomizationExtensionSettings.AllowSort properties to specify whether end-users are allowed to sort and filter field values via the PivotCustomizationExtension.

To specify the PivotCustomizationExtension layout, use the PivotCustomizationExtensionSettings.Layout property. To prevent end-users from applying particular layouts, use the PivotCustomizationExtensionSettings.AllowedLayouts property.

The following image shows a PivotGrid with the bound PivotCustomizationExtension.

Inheritance

Object ExtensionBase PivotCustomizationExtension

See Also

PivotCustomizationExtension Members

DevExpress.Web.Mvc Namespace