Render Model of a strongly typed View or ViewData dictionary of an untyped ViewThe project moved to http://mvccontrib.codeplex.com. I will close this project once I updated the documentation there.
Setup
- Drop ModelVisualizerExtension.cs somewhere in your project
- Include jquery in header of page
- Usage in View: <%= Html.ModelVisualizerExtension()%>
Usage - LimitationsIts tested with Viewmodels, that contain:
- Generic List
- Types of your own Namespace
- IEnumerable<SelectListItem> (dropdownbox)
- simple types (int, string...)
- Enum
Example public class ProductViewModel
{
public IEnumerable<SelectListItem> CategoryList { get; set; }
public string CategoryKey { get; set; }
public ProductInfo ProductDetail { get; set; }
public List<ProductInfo> ProductList { get; set; }
}
Default View of the page

User expanded the Model display

User drilled into a SelectList and a generic List
