Convert value of a DateTime filter to UTC

5 posts, 0 answers
  1. Jason
    Jason avatar
    5 posts
    Member since:
    Aug 2010

    Posted 05 Jan 2012 Link to this post

    Hi,

    I have a RadFilter attached to a RadGrid that has DateTime columns.  The DateTime values are stored in UTC format but are displayed to the user in their local timezone. When the user creates a filter on one of the DateTime columns I need a way to convert the value on the filter to the equivalent UTC value and then filter on those results.

    Thanks for any help,

    jason

  2. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 07 Jan 2012 Link to this post

    Hi,

    Your scenario is not supported and the is no available work around. However, we have planned to implement such functionality in future releases.

    Regards,
    Antonio Stoilkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bill
    Bill avatar
    7 posts
    Member since:
    Jul 2013

    Posted 15 Sep 2014 in reply to Antonio Stoilkov Link to this post

    Was this implemented?  We have the same scenario.
  5. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 18 Sep 2014 Link to this post

    Hi Bill,

    I am happy to say we have implemented a way to achieve this functionality. You could use the new ExpressionItemCreated event described fully in the help article below. The idea is to access the DatePicker control and change the formatting of the control.
    Regards,
    Antonio Stoilkov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Holger
    Holger avatar
    10 posts
    Member since:
    Apr 2015

    Posted 29 Sep 2015 in reply to Antonio Stoilkov Link to this post

    Is there a similar approach for Telerik MVC Grid? I am having exacely the same issue.

    I would appriciate if you could post some links.

     

    Thanks

    Holger

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017