I am using a html helper for Kendo grid to display some data. The model used by the grid has a DateTime nullable property and I want to display the items in grid sorted descending by myDateTime property, with the null values first.
I've managed to display them ordered descending, but the null values are displayed last. Any ideas how could I display the null values first and then the descending sorted values?
@(Html.Kendo().Grid<MyVm>()
.Name("myGrid")
.Columns(columns =>
{
columns.Bound(m => m.myDateProperty);
})
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.Sort(s => s.Add("myDateProperty").Descending())
.Model(model => model.Id(a => a.Id))
.ServerOperation(false)
.Read("myMethod", "myController"))