Sorting on Date field

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 10 Oct 2008 Link to this post


        We are trying to sort Rad grid column which is date in format (mm/dd/yyyy)
    We used Allow Sorting and Sorted Expression property of Grid,But it's working fine only for varchar not for date.So tell me how to solve this problem?

        Can It's posible to add one more column for date it will be visible false & when I click on my date column then sorting work according to my visible false column?

    Please tell me correct way?

  2. Dimo
    Dimo avatar
    8404 posts

    Posted 10 Oct 2008 Link to this post

    Hello Rahul,

    Are you using a GridDateTimeColumn? Here is an example in which sorting works as expected (take a look at the second RadGrid)

    Kind regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top