Hello,
I'm trying to convert the following element of a dynamic table into a template for a list view but am not sure how to go about passing the template value to the function in order to get the correct display value.
Here is the HTML version:
My issue is getting the OrderStatus passed into the EnumHelper method.
What would the syntax be for this type of scenario or is it not supported (or is there a better way)?
Thanks!
I'm trying to convert the following element of a dynamic table into a template for a list view but am not sure how to go about passing the template value to the function in order to get the correct display value.
Here is the HTML version:
<
tr
>
<
td
colspan
=
"4"
style
=
"padding-left:10px; font-weight:bold; font-size:larger"
>
@{
var orderStatus = EnumHelper<
OrderStatuses
>.GetDisplayValue(order.OrderStatus);
}
@orderStatus
</
td
>
</
tr
>
My issue is getting the OrderStatus passed into the EnumHelper method.
<
tr
>
<
td
colspan
=
"4"
style
=
"padding-left:10px; font-weight:bold; font-size:larger"
>
@{
var orderStatusDescription = EnumHelper<
OrderStatuses
>.GetDisplayValue(#=OrderStatus#);
}
@orderStatusDescription
</
td
>
</
tr
>
What would the syntax be for this type of scenario or is it not supported (or is there a better way)?
Thanks!