Last post Dec 30, 2008 02:56 PM by marcind
Dec 29, 2008 09:33 AM|Nezdet|LINK
I get all the FK as dropdownlist.. Can I choose so not all of them should be displayed?
Dec 29, 2008 01:49 PM|ricka6|LINK
With the current released Dynamic Data (3.5 SP1) you can hide the FK field with [ScaffoldColumn(false)]
Dec 29, 2008 01:53 PM|Nezdet|LINK
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?
Dec 29, 2008 07:29 PM|davidebb|LINK
I think your question may be misunderstood. Are you trying to:
Rick's answer is for #1.
Dec 29, 2008 08:28 PM|sjnaughton|LINK
After reading the post again in this thread I think you want which would be custom filters.
<div>2. Have all the drop downs, but limit which foreign entries are included in there</div>
Have a look at this series of articles from my blog here:
Dec 30, 2008 02:56 PM|marcind|LINK
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.