TreeListOptionsCustomization.AllowFilter Property
Gets or sets whether users can filter data using pop-up filter menus and filter panel. This property does not affect filtering in code.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v18.2.dll
Declaration
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowFilter { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true, if pop-up filter menus are enabled; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to AllowFilter |
---|---|---|
WinForms Controls | ResourcesTree |
|
TreeList |
|
|
Reporting | XRDesignFieldList |
|
XRDesignReportExplorer |
|
Remarks
To prohibit using pop-up filter menus and the filter panel, set the AllowFilter property to false. To override this setting for a particular column, use the TreeListColumn.OptionsFilter.AllowFilter property (see TreeListOptionsColumnFilter.AllowFilter).
If filtering is disabled for users, you can still apply filters in code:
- by setting the TreeList.ActiveFilterString and TreeList.ActiveFilterCriteria properties;
- by calling the TreeList.AddFilter method overloads;
- by handling the TreeList.FilterNode event.
Note
Version Compatibility To enable/disable filtering:
- for version 17.1, use the current property;
- for older versions, use the TreeListOptionsBehavior.EnableFiltering property.
For more information, see Version Compatibility: Default Property Values.