Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148148 | Oct 8,2019 06:35 AM UTC | Oct 10,2019 10:30 AM UTC | Blazor | 1 |
![]() |
Tags: Grid |
<EjsGrid TValue="Product" DataSource="@Products" @ref="Grid" ...>
...
</EjsGrid>
@code{
EjsGrid<Product> Grid;
public static IList<Product> Products { get; set; }
public static IList<Category> Categories { get; set; }
protected override void OnInitialized()
{
Products = db.Products.Include("Category").OrderBy(g => g.ProductName).ToList();
Categories = db.Categories.ToList<Category>();
}
...
}
|
<GridColumn Field="Category.CategoryName" HeaderText="Category" Width="150" EditType="EditType.DropDownEdit" ></GridColumn>
|
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.