Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Header Filter

 
DepartmentNot filtered
LocationAscendingNot filtered
BudgetDescendingNot filtered
PhoneNot filtered
CollapseCorporate HeadquartersMonterey$1,000,000.00(408) 555-1234
 CollapseEngineeringMonterey$1,100,000.00(408) 555-1234
  CollapseConsumer Electronics Div.Burlington, VT$1,150,000.00(802) 555-1234
    Software DevelopmentMonterey$40,000.00(408) 555-1234
  CollapseSoftware Products Div.Monterey$1,200,000.00(408) 555-1234
    Customer ServicesBurlington, VT$850,000.00(802) 555-1234
    Research and DevelopmentBurlington, VT$460,000.00(802) 555-1234
    Quality AssuranceMonterey$48,000.00(408) 555-1234
    Customer SupportMonterey$38,000.00(408) 555-1234
  FinanceMonterey$40,000.00(408) 555-1234
 CollapseSales and MarketingSan Francisco$22,000.00(415) 555-1234
   Field Office: East CoastBoston$500,000.00(617) 555-4234
  CollapsePacific Rim HeadquartersKuaui$600,000.00(808) 555-1234
    Field Office: SingaporeSingapore$300,000.00(606) 555-5486
    Field Office: JapanTokyo$500,000.00(707) 555-1526
   MarketingSan Francisco$1,500,000.00(415) 555-1234
   Field Office: CanadaToronto$500,000.00(416) 677-1000

The DevExpress ASP.NET Tree List (ASPxTreeList) allows end-users to filter tree list data using the header filter that displays a drop-down list of all the unique values in a column. To enable the tree list header filter, set the AllowHeaderFilter property to true. The column header's filter button activates the Header Filter, which allows end-users to filter the records stored in the underlying dataset by selecting the values displayed within the drop-down.

Filter drop-down buttons are disabled by default. To show filter buttons, set the Settings.ShowHeaderFilterButton property to true.

You can specify the header filter mode for a column using the SettingsHeaderFilter.Mode property.

  • In List mode, the column's header filter drop-down displays a regular list of filter items, allowing end-users to select a single value.
  • In CheckedList mode, the column's header filter drop-down contains a checkbox list, allowing end-users to select multiple filter criteria values.
  • DateRangeCalendar and DateRangePicker modes are available for date columns only.
  • NumericRangePicker mode is available for numeric columns only.

The ASPxTreeList allows you to create custom filter values, define filter criteria and display these values within the column's filter dropdown. To do this, implement a method delegate specified by the HeaderFilterFillItems property. In this demo, custom filter values are displayed within the 'Budget' column's filter dropdown.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxTreeListDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxTreeListDemos