I see the DisplayAttribute has a ShortName property, but I see no Html.ShortName helper. How can I get to use this short name for my table column headings? Do I have to write my own helper?
I see the DisplayAttribute has a ShortName property, but I see no Html.ShortName helper.
Share
You could write your own helper :
Something like
But, from msdn :
So it looks like it should be automatic (when no room enough), but… untested here. Sounds like it should work with @Html.LabelFor in this way.