filtering date

2 posts, 0 answers
  1. Miloslav Kvapil
    Miloslav Kvapil avatar
    8 posts
    Member since:
    Feb 2010

    Posted 12 Nov 2012 Link to this post

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

    Posted 12 Nov 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top