This is a migrated thread and some comments may be shown as answers.

filtering date

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Miloslav Kvapil
Top achievements
Rank 1
Miloslav Kvapil asked on 12 Nov 2012, 09:30 AM
Hello,

we try using filtering row in GridView. We have columns in database type of datetime where are values with time. It is possible filter this type of columns only on date part? Our customer would like to see all items from the one day. I saw some examples on custom filtering control but in FilterRow mode they cannot be used.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 12 Nov 2012, 09:53 AM
Hello,

You will have to trim the time part of your DateTime if you do not care about it.

You can create a new readonly property on your business object that will return the trimmed DateTime and then point the column's FilterMemberPath to this new "date-only" property.

I hope this helps.

Greetings,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Miloslav Kvapil
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or