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


1 answer


Telerik mvc grid does not only support the time picker as we can see in the method

createTypeSpecificInput

      



telerik.grid.filtering.js file. So you can write your own tile filter input plugin ... or try code

0


source







All Articles