Filter Control Template
The Telerik UI for .NET MAUI TreeDataGrid inherits the filtering from the DataGrid through the Filtering UI which enables the user to quickly filter the displayed data.
To customize the built-in Filtering UI for a concrete column, use the FilterControlTemplate
property of the typed columns (text, boolean, numeric, date, time, and picker columns).
As the template column does not provide a default Filtering UI, to allow users to filter data in template columns, use the FilterControlTemplate
property.
-
FilterControlTemplate
(DataTemplate
)—Specifies the user defined template used for Filtering UI. The template must contain an instance of theTelerik.Maui.Controls.DataGrid.DataGridFilterControlBase
class.
The DataGrid provides the following predefined filter controls which are applied depending on the column type:
DataGridTextFilterControl
DataGridNumericFilterControl
DataGridBooleanFilterControl
DataGridDateTimeFilterControl
DataGridTimeFilterControl
DataGridComboBoxFilterControl
The FilterControlTemplate
property of the columns allows you to customize its corresponding filter control. If the default filter control does not meet the requirements, you can create a custom filter control from scratch.