# PivotFieldList

**RadPivotFieldList** is an integral part of **RadPivotGrid**. It gives the users the power to modify **RadPivotGrid** and generate many different reports with the current data.

![Rad Pivot Field List Getting Started 01](https://www.telerik.com/products/wpf/documentation/assets/d75cdbfa62e6eb47a30b6d6b93adb4c3/radpivotfieldlist_gettingstarted_01.png)

The control provides the following **key features**:

* Automatically change **RadPivotGrid** generated report when the "Defer Layout Update" is unchecked.

* Using CheckBoxes to mark the data you want to include in the **RadPivotGrid**.

* Using **RadContextMenu** to apply modifications on **RadPivotGrid** runtime:

  * Sorting ascending and descending

  * Apply Number Format from the predefined formats or create your own

  * Change currently used Aggregate function

  * Applying different filters - Label, Value, Top10 filter

  * Using different Calculations for GrandTotals

  * Using percent of GrandTotal instead showing the whole number.

We will now demonstrate how to integrate **RadPivotFieldList** with **RadPivotGrid**. We will extend our project from the [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radpivotgrid/getting-started/getting-started) article for **RadPivotGrid**.

## Adding RadPivotFieldList

> **RadPivotFieldList** can be used after adding reference to the following assemblies:

> * Telerik.Windows.Controls
> * Telerik.Windows.Controls.PivotFieldList
> * Telerik.Windows.Controls.Navigation
> * Telerik.Windows.Controls.Input
> * Telerik.Windows.Controls.Data
> * Telerik.Windows.Controls.Pivot
> * Telerik.Pivot.Core

You can add your **RadPivotFieldList** directly in the XAML. First step is to define **pivot** namespace: **xmlns:pivot="<http://schemas.telerik.com/2008/xaml/presentation/pivot>"**. After that add the code below:

```XAML
<pivot:RadPivotFieldList x:Name="radPivotFieldList1" Grid.Column="1" />
```

Now the only thing you have to set is the DataProvider:

```XAML
<pivot:RadPivotFieldList x:Name="radPivotFieldList2" Grid.Column="1"  DataProvider="{StaticResource LocalDataProvider}"/>
```

Here's the result of the modified application from [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radpivotgrid/getting-started/getting-started) article:
![Rad Pivot Grid Rad Field List Getting Started 01](https://www.telerik.com/products/wpf/documentation/assets/ee628d435c68886d56af1d73dff7db68/radpivotgrid_radfieldlist_gettingstarted_01.png)

Now by using **RadPivotFieldList** you are able to modify **RadPivotGrid** at runtime and to generate reports with entire new structure and information. For example, you can transpose the grid by switching the rows and columns of the field list:
![Rad Pivot Grid Rad Field List Getting Started 02](https://www.telerik.com/products/wpf/documentation/assets/f16dc78732cd4f3e960fc787bfa57f83/radpivotgrid_radfieldlist_gettingstarted_02.png)

> tip The OlapDataProviders (AdomdDataProvider and XmlaDataProvider) have a default distinct values limit of 1000 records. This is why if you have more distinct values in your database you won't see them all in the pivot field list control. To alter this number, set the [DistinctValuesLimit](https://www.telerik.com/products/wpf/documentation/controls/radpivotgrid/features/olap-providers/distinct-values-limit) property of the provider.

## See Also

* [RadPivotFieldList](https://www.telerik.com/products/wpf/documentation/controls/radpivotgrid/features/pivotfieldlist)
* [RadPivotGrid Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radpivotgrid/getting-started/getting-started)
* [Populating with Data](https://www.telerik.com/products/wpf/documentation/controls/radpivotgrid/populating-with-data/populating-with-data)
