The event handler receives an argument of type FilterPopupExcelCustomizeTemplateEventArgs containing data related to this event.
The following
FilterPopupExcelCustomizeTemplateEventArgs properties provide information specific to this event.
Property |
Description |
Field |
Gets the Pivot Grid field for which the event is raised. |
PropertyPath |
|
Template |
|
The FilterPopupExcelCustomizeTemplate event is raised each time an end-user invokes the Excel-style filter popup and allows you to customize its template.

Example
The code snippet below shows how to use the FilterPopupExcelCustomizeTemplate event to customize the underlying CheckedListBoxControl used to filter data within the Excel-style filter popup. In this example, the FilterPopupExcelCustomizeTemplate event is used to change the background color of the 'fieldTrademark' filter popup.
C# |
using DevExpress.XtraEditors;
using DevExpress.Utils.Filtering;
pivotGridControl.FilterPopupExcelCustomizeTemplate += OnFilterPopupExcelCustomizeTemplate;
private void OnFilterPopupExcelCustomizeTemplate(object sender, FilterPopupExcelCustomizeTemplateEventArgs e) {
if (e.Field == fieldTrademark) {
CheckedListBoxControl listBoxControl = e.GetValuesListBox();
listBoxControl.Appearance.BackColor = Color.AliceBlue;
}
}
|
VB |
Imports DevExpress.XtraEditors
Imports DevExpress.Utils.Filtering
Private pivotGridControl.FilterPopupExcelCustomizeTemplate += AddressOf OnFilterPopupExcelCustomizeTemplate
Private Sub OnFilterPopupExcelCustomizeTemplate(ByVal sender As Object, ByVal e As FilterPopupExcelCustomizeTemplateEventArgs)
If e.Field = fieldTrademark Then
Dim listBoxControl As CheckedListBoxControl = e.GetValuesListBox()
listBoxControl.Appearance.BackColor = Color.AliceBlue
End If
End Sub
|