Restore displaymode on form reset

2 posts, 0 answers
  1. Brad McBride
    Brad McBride avatar
    10 posts
    Member since:
    Feb 2010

    Posted 01 Jun 2010 Link to this post

    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?
  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 01 Jun 2010 Link to this post

    Hello Brad McBride,

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

    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.
  3. DevCraft banner
Back to Top