FilterPanelElementClickEventArgs Class
Stores data for the FilteringPanelControl.ElementClickCommand.
Namespace: DevExpress.Xpf.Core.FilteringUI
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Remarks
The FilterPanelElementClickEventArgs object is passed as a parameter to the ElementClickCommand handler and includes properties that identify the clicked element within the Filter Panel.
Available Properties
- ColumnName
- Gets the field name associated with the clicked Filter Panel element.
- ElementType
- Gets the type of the clicked Filter Panel element.
- Value
- Gets the value or operator associated with the clicked Filter Panel element.
- ClickCount
- Gets the number of clicks on a Filter Panel element.
Example: Display Custom Pop-Up Messages for Filter Panel Elements
The following code snippet handles clicks on filter field name and value elements to display a pop-up message:
void OnFilterElementClick(FilterPanelElementClickEventArgs e) {
if(e.ElementType == FilterPanelElementType.Property)
DXMessageBox.Show($"Field: {e.ColumnName}");
else if(e.ElementType == FilterPanelElementType.Value)
DXMessageBox.Show($"Value: {e.Value}");
}
Inheritance
Object
FilterPanelElementClickEventArgs
See Also