This is a migrated thread and some comments may be shown as answers.

Convert value of a DateTime filter to UTC

4 Answers 181 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 05 Jan 2012, 05:37 PM
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

4 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 07 Jan 2012, 10:14 AM
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
0
Bill
Top achievements
Rank 1
answered on 15 Sep 2014, 07:22 PM
Was this implemented?  We have the same scenario.
0
Antonio Stoilkov
Telerik team
answered on 18 Sep 2014, 07:31 AM
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.

 
0
Holger
Top achievements
Rank 1
answered on 29 Sep 2015, 12:36 PM

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

Tags
Filter
Asked by
Jason
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Bill
Top achievements
Rank 1
Holger
Top achievements
Rank 1
Share this question
or