Problem filtering date

2 posts, 0 answers
  1. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 09 Feb 2012 Link to this post

    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?
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 10 Feb 2012 Link to this post


    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,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top