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
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?
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?