Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
WebDateChooser question
posted

Is the following behaviour as designed and is it changeable?

 

There is a webdatechooser control on a form filled with a date by code-behind. When I click on the control the calendar opened at the month and year of the date in the input field. Now I change only the year of the calendar ( for example 2020) and click then anywhere on the form outside the calendar. The calendar disappears. When I now click on the control again the calendar shows me the year 2020 and not the year of the date in the input field. How can I force the control to show the date of the input field in the calandar again?

Parents
No Data
Reply
  • 1160
    posted

    I'm not entirely sure what you mean here. I believe the calender does this without needing anything extra but if not you could put the event for value changed and in that place this line of code.

    this.WebDatecCooser1.CalendarLayout.SelectedDate = DateTime.Parse(this.WebDateChooser1.Text.Trim());

Children