Results 1 to 3 of 3

Thread: Selecting year/month in a datepickerfield?

  1. #1
    Sencha Premium User
    Join Date
    Dec 2016
    Posts
    15
    Vote Rating
    0
      0  

    Question Selecting year/month in a datepickerfield?

    The default behaviour of the picker on a datepickerfield does not contain a selector for the year or month.

    This means that you have to click next/previous 12 times to go forward/back 1 year.

    How do you change the picker configuration to allow for a year and month selector on the datepickerfield? I've tried creating a new DatePicker and attaching it to the datepickerfield, but it does not trigger an update of the datepickerfied value on selection of a date...

    Is there a simple way to do this in the datepickerfield config?

  2. #2
    Sencha User
    Join Date
    Oct 2017
    Posts
    16
    Answers
    1
    Vote Rating
    0
      0  

    Default

    I don't think there is a simple way. One solution is to create your own picker(through picker property). Look at http://docs.sencha.com/extjs/6.5.3/m...anel.Date.html and it's yearPicker config. Actually, default datepicker already has year picker, but it's very inconvenient. To activate it, click at year field in picker's header.

  3. #3
    Sencha Premium User
    Join Date
    Dec 2016
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Thank you for the reply.
    I initially started down this path, and the standard Ext.panel.Date is fine for our purposes, but it seem to dismiss when you click on the year selector. This behaviour is only observed when the panel is attached to a datepickerfield...

Similar Threads

  1. [OPEN] Date Field Loses Focus When Selecting Month/Year Picker
    By chamacs in forum Ext 5: Bugs
    Replies: 8
    Last Post: 12 Feb 2015, 4:06 PM
  2. Custom Month/year picker with months buttons and a year scroller
    By patrik62 in forum Sencha Touch 2.x: Q&A
    Replies: 0
    Last Post: 5 Dec 2014, 11:41 AM
  3. [DUP] ExtJS 5 xtype datefield is not working when selecting month or year
    By Aleksei Mialkin in forum Ext 5: Bugs
    Replies: 2
    Last Post: 6 Oct 2014, 11:37 PM
  4. [FIXED] Datepickerfield year range incorrect after selecting a date
    By claritee in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 24 Apr 2012, 3:23 PM
  5. Replies: 1
    Last Post: 22 Apr 2012, 9:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •