Hello, in my grid I stored the DateTime as a short date string (Format: "month/day/year") and of course, it is sorting improperly. I looked up other solutions and they are for other platforms. From what I've seen you guys have a javascript library where it will properly sort the column. What is that javascript and how do I specify the correct column that needs to be sorted like a date? Do I also need to specify what format it is in? This is my code:
I want to sort c.ReceivedDate as a date.
@(Html.Kendo().Grid<ViewModels.RecentReceiptsViewModel>() .Name("RecentReceiptsGrid") .Columns(columns => { columns.Bound(c => c.PoNumber).Title("Po#").Width(100); columns.Bound(c => c.ReceivedDate).Title("Date").Width(100); columns.Bound(c => c.ItemName).Title("Item").Width(100); columns.Bound(c => c.Dimensions).Width(100); columns.Bound(c => c.Cost).Width(100); columns.Bound(c => c.Quantity).Width(100); columns.Bound(c => c.Total).Width(100); }) .Scrollable() .Groupable() .Sortable() .DataSource( dataSource => dataSource.Ajax() .Read(read => read.Action("ReadRecentReceiptsReport", "Reports")))