RadzenDataFilterProperty for a List<string>

Hi,
For a class:

public class Book
{
    public int Id { get; set; }
    public string? Title { get; set; }
    public List<string> SubjectsList { get; set; } = new List<string>();
}

For the Title, RadzenDataFilterProperty, works like a charm. But, I need to filter like this:

view = view.Where(x => x.SubjectsList.Any(a => a.Contains("some query string")));

and then filter based on "some query string" in any string in SubjectsList
Thanks

Hi @akramizadeh,

RadzenDataFilter doesn't support such type of filters (filtering by a property of a collection item).

1 Like

While indeed such filter is not supported at the moment (collection of primitive items) you can filter collection of objects similar to out first DataFilter demo where the OrderDetails Product.ProductName property is filtered using Contains operator:

1 Like

What if one needs case insensitive filtering in your example?

There is a property for that - check our demos.