Welcome Guest Search | Active Topics | Sign In | Register

Month and year dropdown in Date picker Options
Raghav Nayak
Posted: Tuesday, January 27, 2009 1:45:53 AM
Rank: Advanced Member
Groups: Member

Joined: 8/21/2008
Posts: 37
Hi,

The current date picker control what we're using is not user friendly. Because if a user has to select the date like "12/7/1970", it is difficult to keep on clicking till year 1970 appears. It would be
better if there could be month and year dropdown controls, so that selecting on it the calendar would appear.

Please suggest me how to add month and year dropdown.

Regards,
Raghav
eo_support
Posted: Tuesday, January 27, 2009 8:45:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,089
Hi,

The year/month drop down is implemented with a custom header template. You can change that template to whatever you would like. For example, if your user use the year "2000" much often than any other year, you can put "2000" as a button directly in there instead of using a menu. The key is, you can change TitleTemplate to anything you want. If you are not sure how it works, you will want to take a look of the source code of this sample:

http://demo.essentialobjects.com/Default.aspx?path=Calendar\_i1\_i7

The source code for the demo is installed on your local machine when you install our controls.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.