RadDatePicker changes value upon postback

3 posts, 0 answers
  1. S.V. Groeneveld
    S.V. Groeneveld avatar
    2 posts
    Member since:
    Jan 2012

    Posted 05 Mar 2012 Link to this post

    I have a RadDatePicker and a regular button to generate a postback on my page.

    My RadDatePicker is configured so that the DisplayDateFormat of the DateInput is "MMMM, yyyy" which shows month and year when the control does not have focus - which is key to the problem described below.

    First, I select a date via the picker, say "23/01/2009"... the box properly displays "January, 2009"... 

    Next I click the button which performs a postback.

    Now with our 2010.1.519.35 version of the Telerik.Web.UI.dll nothing special happens: the date stays '23/01/2009'.

    However, with our 2011.1.315.40 version the date changes to "05/01/2009". It appears that the display text is being parsed upon postback (so 'January, 2009' becomes 05/01/2009 because it uses 05 from the current date 05/03/2012).

    Also, when the RadDatePicker is set to AutoPostBack='true' (or when pressing return inside the date field) this does not affect the date like the button does.

    I cannot believe this is intended, is it?

  2. Pavlina
    Pavlina avatar
    6187 posts

    Posted 08 Mar 2012 Link to this post


    Can you please examine your code with the latest version of RadControls and let us know if the described problem still persists?

    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. S.V. Groeneveld
    S.V. Groeneveld avatar
    2 posts
    Member since:
    Jan 2012

    Posted 16 Mar 2012 Link to this post

    Sorry, I had not tried this before because there was no mention of a fix in the changelogs, and a one-hour installation of 800 Mb just for the 15 Mb dll doesn't feel very efficient. 

    I cannot reproduce the problem with the 2012.1.215 version.

    Thanks for the reply.

Back to Top