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

    Hi,

        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?

    Thanks
  2. Dimo
    Admin
    Dimo avatar
    8333 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)

    http://demos.telerik.com/aspnet/prometheus/Grid/Examples/GeneralFeatures/ColumnTypes/DefaultCS.aspx


    Kind regards,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top