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
180
YEar Dropdown
posted

Hi,

How can I set the year in the Year dropdown(where you can change the year) in the Calendar.

For example: I want to display years 1950 to current date and user can select any year from that dropdown.

Thanks,

Pandu 

 

 

Parents
  • 10880
    Verified Answer
    posted

    I do not believe their is a way to set a specific range but you can specifiy the total amount of elements that you want to appear in that dropdown.  Try setting the WebDateChooser1.CalendarLayout.DropDownYearsNumber to 100 or so.  If you really need to start at 1950, you could do something like this:

    WebDateChooser1.CalendarLayout.DropDownYearsNumber = (DateTime.Now.Year - 1950) * 2;

Reply Children
No Data