Skip to main content
All docs
V25.2
  • 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

    [DefaultValue(0)]
    [DXCategory("Behavior")]
    public int FilterDelay { get; set; }

    Property Value

    Type Default Description
    Int32 0

    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.

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

    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