Set PropertyName for TextFilterDescriptor nested property

1 Answer 6 Views
Top achievements
Rank 1
Yurii asked on 26 Mar 2024, 06:30 PM
Good afternoon, I would like to know if it is possible to use nested properties in DataGrid FilterDescriptors, as my attempts do not result in the expected behavior. Here is the sample code I am using:
<telerik:RadDataGrid x:Name="dataGrid">
      <telerik:DataGridTextColumn HeaderText="Property" "PropertyName="Property.NestedProperty" />
      <telerik:TextFilterDescriptor PropertyName="Property.NestedProperty" Operator="EqualsTo" Value="Value" />

1 Answer, 1 is accepted

Sort by
Martin Ivanov
Telerik team
answered on 29 Mar 2024, 11:20 AM

Hi Yurii,

The TextFilterDescriptor  doesn't support nested properties, but you can use the NestedTextFilterDescriptor  and its ItemPropertyGetter property. For example:

 var filterDescriptor = new NestedPropertyTextFilterDescriptor();
 filterDescriptor.PropertyName = "Property";
 filterDescriptor.Operator = Telerik.Maui.Controls.Compatibility.Common.Data.TextOperator.EqualsTo;
 filterDescriptor.Value = "Value";
 filterDescriptor.ItemPropertyGetter = (x) =>
     return ((ChildObject)x).NestedProperty;


Basically, you can assign the root property name as PropertyName of the descriptor and then in the property getter function, you will get this object. You can use it to fetch the needed nested property.

I also attached a sample project showing this. I hope it helps.

Martin Ivanov
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at
Asked by
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question