Hi guys
I am having some problems with it...
What I need to do is, display a list of Orders
<GridColumn Field=@nameof(Order.Id) Visible="false" IsPrimaryKey="true"></GridColumn>
<GridColumn Field=@nameof(Order.Name) ></GridColumn>
<GridColumn HeaderText="Order Type">
<Template Context="ecContext">
@{
var item = (ecContext as Order);
<text>@item.OrderType.Name</text>
}
</Template>
</GridColumn>
Id, Name, OrderType.Name
This
OrderType is a child (FK) from Order table with list of OrderType [{1,Debit}, {2,Credit}, {3, Online}]
when user is add/edit an item how to display a dropdownlist with OrderType options but when the user selects it, it will be displaying the
OrderType.Name but also saving the Order.OrderTypeId?
I would like to display a modal with it