-
24 Nov 2012 1:48 AM #1
Unanswered: set datepickerfield minimum and maximum date
Unanswered: set datepickerfield minimum and maximum date
Hello,
I am using Sencha Touch 2.0 on a new app that has a daepickerfield.. this field needs to only allow the user to chose a date from a specific range of dates... but I could only set the yearFrom and yearTo.
I was looking into the documentation for a way to set the minimum and maximum values to a datepickerfield but couldn't find a single way.
could you please help me to get this issue fixed?
-
26 Nov 2012 6:13 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3156
You would need to extend the datepicker and override the onDoneButtonTap to support validations.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Nov 2012 9:04 AM #3
Thanks Mitchell,
My concern here is not to confuse the user. I need to show the exact "valid" period to pick from.
Isn't there any other way?
-
26 Nov 2012 9:05 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3156
The slots are just dataviews so you can change the data in the stores
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote