2

Is there any way of getting the container model when in an editor/display template?

ModelMetaData has ContainerType, but not the container...

Anthony Johnston
  • 8,972
  • 4
  • 39
  • 54
  • I can pass it in with additionalValues, http://stackoverflow.com/questions/1169170/asp-net-mvc-pass-additional-viewdata-to-a-strongly-typed-partial-view – Anthony Johnston Feb 03 '11 at 14:12

1 Answers1

1

As above (http://stackoverflow.com/questions/1169170/asp-net-mvc-pass-additional-viewdata-to-a-strongly-typed-partial-view)

but it would be good if this was just available :)

Anthony Johnston
  • 8,972
  • 4
  • 39
  • 54