New to Telerik UI for WPF? Download free 30-day trial

Filter goes outside the window

PROBLEM

The filtering control goes out of the window boundaries when there is not enough space for it. Here is an example:

troubleshooting filtering boundaries Telerik WPF DataGrid

SOLUTION

You have two options here:

  1. You can shorten the filtering control by either removing the distinct values listbox (top part) or the field filter controls (bottom part). The two boolean properties that controls these behaviors are: ShowDistinctFilters and ShowFieldFilters

troubleshooting filtering boundaries Telerik WPF DataGrid 2

  1. Or you can customize the ControlTemplate of the FilteringControl to reduce the height of the distinct values ListBox. See how to extract the default ControlTemplate of a Telerik control in the Editing Control Templates article. After the template is copied into your project, find the PART_DistinctValuesList ListBox and set its MaxHeight property to a smaller value, e.g. MaxHeight="100".

troubleshooting filtering boundaries Telerik WPF DataGrid 4

In this article