Back to Devexpress

AccordionControl.FilterDelay Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrol-0cd03b28.md

latest3.1 KB
Original Source

AccordionControl.FilterDelay Property

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

Declaration

csharp
[DefaultValue(0)]
[DXCategory("Behavior")]
public int FilterDelay { get; set; }
vb
<DefaultValue(0)>
<DXCategory("Behavior")>
Public Property FilterDelay As Integer

Property Value

TypeDefaultDescription
Int320

The delay, in milliseconds, before filtering is applied when a user types in the search box.

|

Remarks

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.

csharp
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;
    }
}
vb
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

ShowFilterControl

FilterControl

Accordion Control

AccordionControl Class

AccordionControl Members

DevExpress.XtraBars.Navigation Namespace