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

Problem filtering date

1 Answer 21 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 09 Feb 2012, 08:01 PM
When I try to filter my source by a datetime field, I get the default date picker. I enter a date or select from the calendar but my result grid doesn't show the records that correspond with that date. Could it be because the editor is looking at the date only and my underlying value has both date & time? How do I get around this if this is in fact the issue?

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 10 Feb 2012, 10:09 AM
Hi,

You can attach to the EditorCreated event and if the editor is a RadDateTimePicker, you can configure it to display the Date + the Time. But I doubt that the user will want to enter times with seconds.

You will be better off if you expose a Date-only property on your view model, i.e. the original DateTime but with zeroes for the time part. But that is up to you.

Kind regards,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
DataFilter
Asked by
Rayne
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or