Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Collapse]Navigation Controls
   [Collapse]Accordion Control
     Getting Started
    [Expand]Accordion Items
    [Expand]Data Binding
     Expanding and Collapsing
     Searching
     Selection
     Collapse Mode
    [Expand]Visual Elements
   [Expand]Navigation Bar
    Office Navigation Bar
    TileNav Pane
    Tile Bar
   [Expand]Wizard Control
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Searching

The AccordionControl features the built-in search panel. Set the AccordionControl.ShowSearchControl property to true to display the search panel.

Accordion items are filtered based on their AccordionItem.Header property value.

Tip

By default, the AccordionControl uses the Contains filter condition to construct filter criteria. Use the AccordionControl.SearchControlFilterCondition property to specify another filter condition.

The AccordionControl.SearchControlNullText property specifies a string that the search box displays when it is empty and not focused.

Expanded Search Tag

You can specify a search tag for an accordion item using the AccordionItem.SearchTag property.

Accordion item whose AccordionItem.SearchTag property meets filter criteria is included in search results regardless of its AccordionItem.Header property value.

Note

The search tag is only supported when items are defined explicitly (i.e., not generated from a data source).

The following example demonstrates a data editor explicitly wrapped in an AccordionItem object.

Expanded Data-Bound Accordion Control Filtering

The data-bound AccordionControl is filtered based on the data source values.

The Search Control feature does not support BindingList.

Tip

To learn more about data binding, see the Data Binding documentation topic.

There are several ways to configure which data source fields are displayed by accordion items. Depending on this configuration, the item matching rules may differ. Examine the following table.

Binding type Matching rules
AccordionControl.DisplayMemberPath An item is included in the results if the displayed value of the underlying data object meets the search criteria.
Data template An item is included in the results if the ToString() return value of the underlying data object meets the search criteria.

To provide custom filtering logic for the AccordionControl, handle the AccordionControl.CustomItemFilter event.

Is this topic helpful?​​​​​​​