Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Changing UniqueValues Collection for custom filtering
posted

Some of the grid columns in my application need to support a custom list of filters in the filter dropdown.  I've attempted to manually add and modify the FilterSelectionControl's generic template and I see where the listbox is being bound to a list of unique values, but since the control uses a proxycollection, I can't simply drop in a converter to modify the values.  Even if this was to work, I'd still have to override the method which actually performs the filtering and figure out how to apply this template to just some and not all of the grid's columns.

Can someone please point me in the right direction?

 

Thanks!

Parents
No Data
Reply
  • 165
    posted

    Here's some additional info.  What I'm really trying to do is the following.  I have a grid with the following info:

     

    Product Available Colors Price
    TShirt Red $10
    Jacket Red, Green, Blue $100
    Blouse Red, Green, Yellow $35

     

    When using the filter dropdown, unique values list for available colors contains the following entries:

    Red
    Red, Green, Blue
    Red, Green, Yellow

     

    I'd like it to contain the entries:

    Red
    Green
    Blue
    Yellow

     

    And I'd like to be able to return the Jacket and Blouse rows when I select "Green", for example.

     

    In other words, I need to change both the filter list and the filter behavior for just that one column.  

     

    How do I do that?

Children