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
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;
This was an excellent question and an excellent answer. Thank you both.
Thanks for the suggestion, it worked.
I used MinValue and MaxValue to set date from 1950 to current.