DataType.Time attribute in ViewModel ignored by Telerik MVC grid filters
I have a ViewModel property decorated with
[DataType(DataType.Time)]
The grid column is described like this:
columns.Bound(m => m.ArrivalTime).Width(130).Format("{0:hh:mm tt}");
Telerik MVC's grid edit mode determines the data type by purpose and only provides time values ββvia a dropdown. Good!
The bad news is that the filter menu ignores the datatype specification and provides a date control instead. Needless to say, this disables filtering on the column.
+3
source to share