Pivot Grid for WPF - How to Implement a Context Menu Action to Display Top 5 Values in a Column or Row
The key task is to enable the Sorting by Summary and Top N Values features simultaneously.
API in this example:
- PivotGridControl.PopupMenuShowing event
- PopupMenuShowingEventArgs.TargetElement property
- FieldValueElement class
- FieldValueElementData class
- PivotGridControl.GetFieldsByArea method
- PivotGridControl.GetFieldValue method
- SortByConditionCollection class
- PivotGridField.SortByConditions property
- PivotGridField.SortByOrder property
- PivotGridField.SortByField property
- PivotGridField.TopValueCount property
- PivotGridField.TopValueShowOthers property