Error with RadFilterDateFieldEditor where culture = UK

5 posts, 0 answers
  1. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 10 Jan 2011 Link to this post

    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
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 13 Jan 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 17 Jan 2011 Link to this post

    Hello Nikolay,

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

    Regards
    Anne
  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 20 Jan 2011 Link to this post

    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.
  6. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 25 Jan 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017