Dynamic data: if ScaffoldTable set to false and exist a customPages, the table is not hidden - by Andrea Dottor [MVP]

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


0
0
Sign in
to vote
ID 388504 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 12/17/2008 12:19:00 AM
Access Restriction Public

Description

In my project with dynamic data I have create a custom page for all table/class for customizing the visualization. I have set [ScaffoldTable(false)] in one class that i want hide (and display in future) but I don't have delete the custom pages for this class.

The problem is that the table is displayd although I  set ScaffoldTable to false.
The solution is rename a folder in the custom pages, or delete these files.

Why this behavior? Is by design?

Because in my head I have think that the attribute ScaffoldTable have the priority, and for find a soution (delete custom pages) I have lost more time.
Sign in to post a comment.
Posted by Microsoft on 1/7/2009 at 10:35 AM
This is actually by design. Scaffolding is when Dynamic Data builds the page automatically for you. The existence of a custom page basically means that you are not scaffolding because the page exists. You can easily make it work the way you want by having your custom pages check for the Scaffolding boolean on the MetaTable, if it is false redirect to a known page or set the HTTP error.