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

SelectableDateStart rendering issue with default date

1 Answer 56 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 31 Jan 2013, 08:56 PM
Silverlight Q3 2012 SP1 RadDatePicker and RadDateTimePicker have an interesting rendering problem if the DisplayDateStart or DisplayDateEnd range does not include today's date.  When the dropdown RadCalendar is selected the current month is displayed with the buttons disabled and only the remaining days of the month visible.

For example today is Jan 31 2013, if the DisplayDateEnd is Dec 31 2012 then I see 'Jan 30 2013' and 'Jan 31 2013' but cannot select them.  When I click the month back, instead of arriving at December 2012 I jump straight to November 2012. Then clicking forward brings me to December and the forward button to Jan is disabled as it should be.  There is no way back to the dates outside of the display range but on the very first opening of the calendar the behavior is messed up.

The RadCalendar 'DisplayDate' attribute should be able to calculate if the current date (if used as a default value for null values) is greater than the max display date and select the lesser. Or alternatively if the min display date is greater than the current date.

Is there any workaround for this without disabling the DisplayDate's and relying on SelectableDate's instead?

1 Answer, 1 is accepted

Sort by
0
Ventzi
Telerik team
answered on 05 Feb 2013, 12:20 PM
Hi Robert,

Thank you for pointing us this issue out. I logged it in the PITS where you can track its progress. Possible workaround (without disabling the DisplayDate's) is to set the value of the DisplayDate property to the value of the DisplayDateEnd property. This will force the calendar to navigate to the last selectable date.

Your Telerik points were also updated for your cooperation and we're sorry for the inconvenience caused.

Kind regards,
Ventzi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker
Asked by
Robert
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Share this question
or