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

Restore displaymode on form reset

1 Answer 61 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Brad McBride
Top achievements
Rank 1
Brad McBride asked on 01 Jun 2010, 01:08 PM
I am working with a form I am building in Silverlight that is used to select data that has a date range starting in 1904 and goes to today's date. In order to allow people to search this data by date, I am using the RadDatePicker because I can start it in Century View and it works very well for allowing users to pick a start/end date very easily. The form has a reset button that I need to use to restore the search fields to their initial blank states. I can remove the date selected by the user by setting the SelectedDate to Nothing but I cannot get the date picker to return to the default Centry View. The code I'm using is below

rdpStart.SelectedDate = Nothing 
rdpStart.DisplayMode = Telerik.Windows.Controls.Calendar.DisplayMode.CenturyView 

However, this does not restore the datepicker control to its default state where the user sees the century with the different decades to choose from. The control still has the month that the user picked a date from chosen in their previous search. How do I reset the datepicker control so that its display reverts back to a century control?

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 01 Jun 2010, 02:57 PM
Hello Brad McBride,

We will provide a fix for the next internal builds. Sorry for the misleading caused.

Regards,
Kaloyan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
DatePicker
Asked by
Brad McBride
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or