This is a migrated thread and some comments may be shown as answers.

filter a collection of collections

1 Answer 26 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Arturo
Top achievements
Rank 1
Arturo asked on 18 Jun 2011, 06:15 PM

Hello

I am using a class like the following:

public class SLDocumentos
{
    public int Identificador { get; set; }
    public string Nombre { get; set; }
    public SLCatalogoDoc IDActividad { get; set; }
    public SLCatalogoCorp Compania { get; set; }
    public ObservableCollection<SLCatalogoPerson> Personal { get; set; }
    public DateTime? FechaActividad { get; set; }
}

i made a Collection of that class and these are the items that i display in my RadGridView and now i want to filter it with the RadDataFilter but i have a trouble with this:

public ObservableCollection<SLCatalogoPerson> Personal { get; set; }

is possible filter it together with the other items??

sorry for my poor english.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 20 Jun 2011, 08:56 AM
Hi Arturo,

That is not possible. RadDataFilter creates simple LINQ Expressions in order to filter the source collection. For example:

sourceCollection.Where(person=>person.Name == "John")

or

sourceCollection.Where(person.Salary > 1000)

When the property is another collection, such an expression cannot be created.

All the best,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DataFilter
Asked by
Arturo
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or