1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    12
    Answers
    1
    Vote Rating
    0
    madhumita.254 is on a distinguished road

      0  

    Default Unanswered: Date picker

    Unanswered: Date picker


    How to remove this above part from date pickerScreen shot 2012-08-28 at 8.20.16 PM.png

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    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?

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    12
    Answers
    1
    Vote Rating
    0
    madhumita.254 is on a distinguished road

      0  

    Default


    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.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,076
    Answers
    674
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    sencha99999 is on a distinguished road

      0  

    Default


    This code will do for you
    Ext.override(Ext.picker.Date, {

    showMonthPicker: function(){}
    });