-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date picker year range changes #287
Comments
no |
Can we add that feature from the previous wicegrid version in our configuration file or it was by default coming previously and not now? |
I think I misunderstand you. |
As the jquery Datepicker in the above link: For year selection, if we select some date then automatically 10 more years is added to the year list. Same if we go in the past year as well. Even I added extra code to make it work: |
Have you tried removing |
Yes, I am getting this error:
So DATEPICKER_YEAR_RANGE, we have to mention in the config file as of version 3.6. |
hm.. not good. can you try smth like |
Sorry, for the late reply. Its the same defiining DATEPICKER_YEAR_RANGE in the config file. Just that whatever range we have mentioned in the configfile, we can ovverride it by this. |
Hello,
I am currenty using wicegrid Jquery datepicker. We upgraded from wicegrid 3.0.4 to 3.6. So previously, there was no datepicker year range in the config file. So, we can select the year range as in:
https://jqueryui.com/datepicker/#dropdown-month-year .
But now in 3.6, we are defining a year range as:
Wice::Defaults::DATEPICKER_YEAR_RANGE = (from = Date.current.year - 10).to_s + ':' + (from + 15).to_s
So it is only within a range and all years are shown as scrollable.
Is there any extra configuration in that to work like the jquery year range ?
Thanks.
The text was updated successfully, but these errors were encountered: