windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrol-0cd03b28.md
Gets or sets the delay, in milliseconds, before filtering is applied when a user types in the search box.
Namespace : DevExpress.XtraBars.Navigation
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(0)]
[DXCategory("Behavior")]
public int FilterDelay { get; set; }
<DefaultValue(0)>
<DXCategory("Behavior")>
Public Property FilterDelay As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 0 |
The delay, in milliseconds, before filtering is applied when a user types in the search box.
|
Use the FilterDelay property to reduce the number of filter operations in the Accordion Control and allow a user to type several symbols in the search box before a filter operation is executed.
To display a search box in the Accordion Control, set the AccordionControl.ShowFilterControl property to Always.
using DevExpress.XtraEditors;
using DevExpress.XtraBars.Navigation;
public partial class Form1 : XtraForm
{
public Form1()
{
InitializeComponent();
// Show the filter control
accordionControl1.ShowFilterControl = ShowFilterControl.Always;
// Set a delay of 500 milliseconds
accordionControl1.FilterDelay = 500;
}
}
Imports DevExpress.XtraEditors
Imports DevExpress.XtraBars.Navigation
Public Partial Class Form1
Inherits XtraForm
Public Sub New()
InitializeComponent()
' Show the filter control
accordionControl1.ShowFilterControl = ShowFilterControl.Always
' Set a delay of 500 milliseconds
accordionControl1.FilterDelay = 500
End Sub
End Class
Note
The delay is in effect only for the built-in search control. If you assign a custom search control to the AccordionControl.FilterControl property, the FilterDelay property is ignored.
See Also