This project is read-only.

Something like the Loaded method - Rendered?

Aug 2, 2012 at 3:08 PM

We have the need to conditionally show feedback to the user based on the state of an entity whenever that entity is displayed in object view.

So we tried triggering it from the Loaded() life cycle method. That works, but also fires when loaded in a list, which is obviously a problem.

Is there some other way of achieving what we need without a hack?

Aug 2, 2012 at 4:20 PM

I can't think of any way of writing this logic into the domain model, because an object does not know how it is being used. 

But you could fairly easily achieve the effect with a custom View for that domain type. Either just as some simple HTML based on the state of the object's properties, or perhaps with a little JavaScript to create a pop-up that the user could click on to go away.