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

RadDatePicker changes value upon postback

2 Answers 156 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
S.V. Groeneveld
Top achievements
Rank 1
S.V. Groeneveld asked on 05 Mar 2012, 09:35 AM

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 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Mar 2012, 04:27 PM
Hi,

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

Regards,
Pavlina
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
S.V. Groeneveld
Top achievements
Rank 1
answered on 16 Mar 2012, 11:22 AM

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.

Tags
Calendar
Asked by
S.V. Groeneveld
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
S.V. Groeneveld
Top achievements
Rank 1
Share this question
or