Use the attribute [UIHint("Tags")] then create a display template called Tags.ascx in the DisplayTemplates folder.
class MyModel
{
[UIHint("Tags")]
IList Tags { get; protected set; }
}
And in the file Tags.ascx
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl>" %>
- 热议问题