My test shows it doesn't work. It ignores the nested data in model. Can anyone confirm this?
views:
493answers:
1
+1
A:
What do you mean? If you are defining an EditorTemplate for a specific type, you have complete control over the HTML it renders.
It sounds like you are using the 'default' editor template that MVC tries to use if you haven't set up a specific template, and it should only iterate over those simple properties it can find with analysis. If you create a:
\Views\<Controller>\EditorTemplates\<YourViewModelName>.ascx
you can then make it display whatever you want.
Tejs
2010-04-27 02:39:54