MVC 4 Custom HTML Helper Vs Custom Custom Template

So I have a structure obj as shown below.

ComparedObject:

public List<string> Objs { get; set; }
public string PropName { get; set; }

      

ModelObj:

public List<ComparedObject> CObjs { get; set; }

      

I have a scenario where I will need to loop through "CObjs" and display a comparison table of an object List<string>

whose lengh will be 3 records (per line).

I achieved this with a dedicated HTML helper to make it general for use on other screens. But I was told that the Custom Display Template would be faster and more efficient in this scenario.

Please explain which is the best option and why.

Thanks in advance!

+3


source to share





All Articles