Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144596 | May 14,2019 05:26 AM UTC | May 17,2019 11:27 AM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: Grid |
@{
object format;
format = new { type= "date", format= "dd.MM.yyy" };
}
@Html.EJS().Grid("FlatGrid").DataSource((IEnumerable<object>)ViewBag.dataSource).Columns(col =>
{
col.Field("EmployeeID").HeaderText("Employee ID").IsPrimaryKey(true).Width("120").Add();
col.Field("CustomerID").HeaderText("Customer Name").Add();
col.Field("ShipCountry").HeaderText("Ship Country").Width("150").Add();
col.Field("OrderDate").HeaderText("Order Date").Type("date").Format(format).Width("150").Add();
col.Field("Freight").HeaderText("Freight").Width("120").Add();
}).AllowPaging().AllowFiltering().FilterSettings(filter => { filter.Type(Syncfusion.EJ2.Grids.FilterType.Menu); }).Render()
|
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.