PDA

View Full Version : MonthPicker for past Months only.



sruthi v m
11 Jan 2012, 4:48 AM
I need a monthpicker (monthfield) only for the past months,i.e,the month picker must show only those months and year that are allready passed. Please help me to find a solution for this as soon as possible.:)


Thanks in Advance.

tobiu
11 Jan 2012, 7:48 AM
you can set a max date on the datePicker component:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.picker.Date-cfg-maxDate

you can also go for a comboBox and add only the months you like to there.