Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149373 | Nov 23,2019 11:55 AM UTC | Nov 25,2019 01:04 PM UTC | Blazor | 1 |
![]() |
Tags: Grid |
<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" } }
};
...
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.