Top "Display-templates" questions

Display template is a html template which can be repeat for each item in its model and it will load in specific section of a view of asp.

ASP.net MVC - Display Template for a collection

I have the following model in MVC: public class ParentModel { public string Property1 { get; set; } public string Property2 { get; set; } …

asp.net-mvc asp.net-mvc-3 display-templates
Using a DisplayTemplate (with DisplayFor) for each item in a collection

I have created a DisplayTemplate for a Comment class, and placed it inside Comment/DisplayTemplates/Comment.cshtml. Comment.cshtml is …

asp.net-mvc asp.net-mvc-3 razor display-templates
How do I override DisplayFor boolean?

How do i create a display template so i can display a bool as Yes or No not a checkbox? …

asp.net-mvc-3 boolean checkbox display-templates
Changing date format in display templates for SharePoint 2013

I have a Content Search Webpart that uses a customized Display Template to display results of recent changed documents. I …

sharepoint sharepoint-2013 display-templates
ASP.NET MVC 4 define display template for string only

I want to create a display template for string properties only, and use default for all others. I tried to …

razor asp.net-mvc-4 display-templates
ASP.NET MVC 3 Custom Display Template With UIHint - For Loop Required?

If i have a ViewModel like this: public class MyViewModel { [UIHint("SomeTemplate")] public ICollection<SomeViewModel> Submodel { get; set; } } …

asp.net-mvc asp.net-mvc-3 razor data-annotations display-templates