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

Error with RadFilterDateFieldEditor where culture = UK

4 Answers 57 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Anne
Top achievements
Rank 1
Anne asked on 10 Jan 2011, 12:27 PM
Hello,

I use a RadGrid with Radfilter.
Until the user, I change the Thread.CurrentThread.CurrentCulture of my web page, Culture of my Radgrid and Culture of my Radfilter.
The DataFormatString="{0:d}" for all my date columns.

When the culture is 'fr-FR',  date = dd/MM/yyyy and no problem
When the culture is 'en-US', date = MM/dd/yyyy and no problem

but when the culture is 'en-GB', date = dd/MM/yyyy but if I make a filter with RadFilter on date, there is a problem :
Example : filter = 07 jan 2011
result = 01 july 2011
No problem with filter in the RadGrid 

Can you help me, please

4 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 13 Jan 2011, 02:37 PM
Hello Anne,

Can you replicate it on the sample page attached to this post?

Regards,
Nikolay
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Anne
Top achievements
Rank 1
answered on 17 Jan 2011, 02:53 PM
Hello Nikolay,

On your FTP server, I add a directory called 'Filter' with your modified sample.

Regards
Anne
0
Nikolay Rusev
Telerik team
answered on 20 Jan 2011, 02:56 PM
Hello Anne,

I do not see any wrong expression to be built with your code. Filter expression build for '20/01/2011 01:00:00' date seems correct:
([Date] = '20/01/2011 01:00:00')

Regards,
Nikolay
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Anne
Top achievements
Rank 1
answered on 25 Jan 2011, 09:38 AM
Hello Nikolay,

I did not succeed in reproducing my problem in 'MyProject'.
For the moment, I use the culture 'en-US' but I must changed the dataformat.
I understand how work the localization but I don't find the cause of my problem.
I'll study thoroughly later while looking for the difference between my project and the sample project.

Regards,
Anne
Tags
Filter
Asked by
Anne
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Anne
Top achievements
Rank 1
Share this question
or