'Enum type replaces the name of the data
This is my JavaScript calling data
{
data: "FuelType",
className: "table-col9"
}
This is my cshtml
<th class="table-col9">@ExpenseRes.FuelType</th>
This is my model Enum type
public enum FuelType
{
Fuel=1,
Diesel,
LPG
}
enter image description here In the photo I took a screenshot, 3 appears because I chose the LPG option. It probably gives the number of rows, it shows 3 because it is a enum type, but I want the name to appear in the field in the screenshot I took.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
