Hello.
The Excel filter of one column doesn't work (it doesn't appear when you click on it) if there are any null value. For example, when the type is DateTime? and there are some rows with null values.
Thanks.
|
@(Html.EJ().Grid<OrdersView>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.dataSource)
.AllowSorting()
.AllowPaging()
.AllowFiltering()
.FilterSettings(filter => { filter.FilterType(FilterType.Excel); })
.Columns(col =>
{
. . .
col.Field("OrderDate").HeaderText("Order Date").TextAlign(TextAlign.Right).Type("datetime").Priority(4).EditType(EditingType.DateTimePicker).Format("{0:MM/dd/yyyy hh:mm:ss}").Add();
}))
|
Hello,
I have configured the column with Type("datetime") and the filter works!!!
Thank you!!!