Filterrepeater - remove some dropdownlist RRS feed

  • Question

  • User1906504752 posted

    I get all the FK as dropdownlist.. Can I choose so not all of them should be displayed? 

    Monday, December 29, 2008 9:33 AM

All replies

  • User-1005219520 posted

    With the current released Dynamic Data (3.5 SP1) you can hide the FK field with [ScaffoldColumn(false)]

    If you use the  -ASP.NET Dynamic Data 4.0 Preview 2 is you can apply the new filter attribute [Filter(Enabled = false)]


    Monday, December 29, 2008 1:49 PM
  • User1906504752 posted

     But if I use filter = false,, then whole filter vill not be displaed..

    what if I want only some of them,, not all of them? 

    Monday, December 29, 2008 1:53 PM
  • User1641955678 posted

    I think your question may be misunderstood.  Are you trying to:

    1. Not have a drop down at all for some of the filters
    2. Have all the drop downs, but limit which foreign entries are included in there

    Rick's answer is for #1.


    Monday, December 29, 2008 7:29 PM
  • User-330204900 posted

    After reading the post again in this thread I think you want which would be custom filters.

    2. Have all the drop downs, but limit which foreign entries are included in there

    Have a look at this series of articles from my blog here:

    1. Part 1 - Getting Dynamic Data Futures filters working in a File Based Website.
    2. Part 2 - Create the AnyColumn filter from the Dynamic Data Futures Integer filter.
    3. Part 3 – Creating the AnyColumnAutocomplete filter.
    Monday, December 29, 2008 8:28 PM
  • User-797310475 posted

    Hi Nezdet,

    In the 3.5 SP1 version of Dynamic Data the rendering and logic for the filter dropdown is defined in DynamicData\Content\FilterUserControl.ascx. You will have to modify the body of the Page_Init method and replace the call to PopulateListControl with yout custom logic for inserting entries into the dropdown list.

    Tuesday, December 30, 2008 2:56 PM