Customizing RadPivotFieldList
RadPivotFieldList can be customized by accessing the elements building its controls or by handling events and define which fields to be extracted and displayed.
Visual Field Manipulation
RadPivotFieldList internally contains a RadTreeView built with nodes coming from the data source object as fields. The tree can be easily accessed and its elements modified.
Before Sorting | After Sorting |
---|---|
![]() |
![]() |
Sorting the Nodes
Before Hiding | After Hiding |
---|---|
![]() |
![]() |
Hiding Nodes
The nodes in the pivot field list are built dynamically so in order to hide a particular node and persist the changes we would need to handle the UpdateCompleted event.
Remove Fields Logically
In the case of a LocalSourceDataProvider object used to populate the items in RadPivotGrid, the nodes can be manipulated by handling the AddingContainerNode and GetDescriptionsDataAsyncCompleted events.
Setup the Providers
Before Canceling | After Canceling |
---|---|
![]() |
![]() |
Cancel Adding a Particular Node
Before Removing | After Removing |
---|---|
![]() |
![]() |
Remove a Child Date Node
Formatting Nodes
The nodes within the RadPivotFieldList can be formatted. You can easily format node elements by handling the NodeFormatting event as follows:
Then, introduce the desired customizations to NodeElements:
|
Please note that you should always provide an 'else' clause in the NodeFormatting event where you should reset all of the introduced customizations. More information is available here.