<EjsGrid TValue="Order" ...>
...
<GridColumns>
<GridColumn Field=@nameof(Order.OrderID) AllowEditing="false" HeaderText="ID" TextAlign="TextAlign.Right"></GridColumn>
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Status" EditType="EditType.DropDownEdit"...Edit="@CustomerIDEditParams">
</GridColumn>
</GridColumns>
</EjsGrid>
@code{
...
public static List<Country> status {get;set;}
protected override void OnInitialized()
{
status = new List<Country> {new Country() { CustomerID= "In Process" },new Country() { CustomerID= "Completed"}};
}
public class Country
{
public string CustomerID { get; set; }
}
public object CustomerIDEditParams = new
{
@@params = new EjsDropDownList<string>() { DataSource = status, Fields = new DropDownListFieldSettings() { Text = "CustomerID", Value = "CustomerID" } }
};
...
}
|