I have a view named CreateProject.cshtml that it strongly type of CreateProjectViewModel when i want do use custom format for One of inputs that for this use Following Code in CreateProjectViewModel :
[DisplayFormat(DataFormatString = "{0:###,###.####}", ApplyFormatInEditMode = true)]
public decimal Price { get; set; }
Well I try this way but worked also use Following Code :
@Html.TextBoxFor(m => m.ProjectPrice, new { @Value = Model.ProjectPrice.ToString("0:###,###.####") })
Still does not work, For solve this problem i see other questions.
Also I should add that I Use Automapper for mapping ViewModels and tried create custom format with formatter.js but still does not work.
at the end
I Have following format
22,222,222 // this is currency