PDA

View Full Version : Date picker



madhumita.254
28 Aug 2012, 6:52 AM
How to remove this above part from date picker38304

friend
28 Aug 2012, 8:42 AM
Sorry for the confusion, but what exactly are you trying to remove from the Date picker? Are you saying that you only want to see the month/year selection with no days of the month?

madhumita.254
29 Aug 2012, 1:51 AM
In the right side of the date picker field a drop down symbol is there,
After clicking on that drop down , no of option like month name and year ,two button i.e "ok" and "cancel" button comes.I want to disable that options in my application.
Please reply.

scottmartin
29 Aug 2012, 6:57 AM
You would need to override the datePicker and remove the MonthBtn from the template.
There are also several references in the functions below.

Ext.override(Ext.picker.Date, {
// functions to override.
});

Scott.

sencha99999
29 Aug 2012, 7:13 AM
This code will do for you
Ext.override(Ext.picker.Date, {
showMonthPicker: function(){}
});