This project is read-only.

How to suppress the Edit button on an ObjectView form?

Oct 26, 2011 at 6:42 PM

I have a domain object that, at a certain point in its lifecycle, becomes immutable and so shouldn't be editable.

However, it seems that the Html.PropertyList helper automatically generates an Edit button.  

Is there a way to control this?  I can think of two possible approaches:

1. through  the NO programming model, eg say a programmatic version of the [Immutable] facet?

2. through the view, eg an extra flag on Html.PropertyList

Of these, I prefer the former... but maybe there's a solution already?

Dan

Oct 26, 2011 at 9:16 PM
If all your properties are disabled, the edit button won't render.
Check out DisablePropertyDefault in the manual.

Oct 26, 2011 at 9:45 PM
Thx, that makes sense, though as I recall all the properties were disabled. I'll double check when I get back into work.

Dan
~~~

On 26 October 2011 21:16, jfbosch <notifications@codeplex.com> wrote:

From: jfbosch

If all your properties are disabled, the edit button won't render.
Check out DisablePropertyDefault in the manual.

Read the full discussion online.

To add a post to this discussion, reply to this email (nakedobjects@discussions.codeplex.com)

To start a new discussion for this project, email nakedobjects@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com