Filtering without column

3 posts, 0 answers
  1. Rayne
    Rayne avatar
    254 posts
    Member since:
    Sep 2010

    Posted 28 Oct 2015 Link to this post

    I've just updated the Telerik controls and now I am trying to find a new way to apply my filtering.

     Previously I had a FilterDescriptor defined in the XAML for my grid, that allowed me to filter on a Data Member without including that member as a column. The grid is bound to a child collection of a parent object (which is the data context for the User control). But I need to filter the child collection so that items marked IsDeleted are never shown to the user.

     What is the easiest, quickest way to do this now that FilterDescriptors are no more?

  2. Rayne
    Rayne avatar
    254 posts
    Member since:
    Sep 2010

    Posted 28 Oct 2015 in reply to Rayne Link to this post

    I managed to do it quickly in code behind, but I had to add a column for that field and set visibility to false on the column. I would have preferred to do it in xaml and minimize the amount of code-behind since this is an MVVM application.
  3. Stefan
    Stefan avatar
    792 posts

    Posted 02 Nov 2015 Link to this post

    Hi Rayne,

    For achieving this, you can define a FilterDescriptor as per your requirements and then add it to the FilterDescriptors collection of RadGridView. You can take a look at the example below.
    FilterDescriptor descriptor =
        new FilterDescriptor("Name",
            FilterOperator.IsNotEqualTo, "Liverpool");

    Additionally, you can take a look at our documentation on Filtering.

    Hope this helps.

    Stefan X1
    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 Feedback Portal and vote to affect the priority of the items
Back to Top