FilterRepeater filter "Filters" RRS feed

  • Question

  • User-1254308814 posted

    What is the best way to filter the items that show up on the FilterRepeater. I have IsAtive and IsDefault columns on my entity and I would only like to allow the users to filter on IsActive.


    Thursday, October 23, 2008 4:39 PM


All replies

  • User1024101778 posted


    Sjnaugton has a good post on this on his blog on this very topic.



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 24, 2008 12:43 AM
  • User-1005219520 posted

    An easy way to do this is via ScaffoldColumn(false) - but that would also hide the column from the display - probably not what you want. Looks like Steve's approach suggested above will solve your problem.

    Friday, October 24, 2008 12:53 AM
  • User-1254308814 posted

    Thanks a lot that was what I was looking for.

    Friday, October 24, 2008 12:59 AM
  • User-1005219520 posted

    The FilterAttribute in the Dynamic Data Futures sample  does this.  The FilterAttribute  also lets you specify the filter control to use. The Default.aspx page has

    Use advanced filters

    The AdvancedFilterRepeater provides a mechanism for declaring custom filters in a manner similar to how field templates can be declared using the UIHintAttribute. This sample adds a number of filters that illustrate this functionality: autocomplete, cascading dropdown, Boolean radio. They are all located in the DynamicData\Filters directory. The filters are applied on the model using the new FilterAttribute, which are then used by AdvancedFilterRepeater to pick the right filter control.


    Friday, October 24, 2008 1:44 PM