Edit this page


The RadTreeListView provides you with a built-in filtering functionality, which allows the user to easily filter the data by one or more columns.

Clicking the filtering icon in the column headers opens a menu with the distinct values for the current column and the user can select which of these values to be displayed. The user can enter a filter criterion in the filter box. A drop-down list allows the user to select a filter expression that is applied to the criterion for the column. The case sensitivity can also be specified via a check box. When the user presses the filter button, the grid displays only the records matching the filter criteria specified by using the filter boxes.

Only the values at the highest level of the hierarchy are included in the distinct filter list.

In order to filter TreeListView's low level nodes directly through the distinct values listbox, you can manually set its ItemsSource. Just subscribe to the DistinctValuesLoading event of TreeListView and set the e.ItemsSource to the collection you want to show.

For example:

private void radTreeListView_DistinctValuesLoading(object sender, GridView.GridViewDistinctValuesLoadingEventArgs e)
    e.ItemsSource = WarehouseService.GetNames();

As the RadTreeListView directly inherits the RadGridView it uses its filtering mechanism. The RadGridView allows you to implement programmatic filtering, custom filtering and more. To learn more read the respective topics in the RadGridView's documentation.

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article