public class Board
{
[Display(ResourceType=(typeof(MVC.Resources.Board)), Name="TEST")]
[DisplayFormat(NullDisplayText="")]
public int? ItemId { get; set; }
public string Title { get; set; }
public string Contents { get; set; }
public string Author { get; set; }
public DateTime Date { get; set; }
}
this it MVC Model, How Can I DisplayFormat(NullDisplayText) localization
Here's what I did that works.
I created the following class that could localize the NullDisplayText for any property.
I referenced it like this:
It works like a charm.