Results 1 to 4 of 4

Thread: set datepickerfield minimum and maximum date

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    Saudi Arabia
    Posts
    3
    Vote Rating
    0
      0  

    Default 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?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    You would need to extend the datepicker and override the onDoneButtonTap to support validations.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Location
    Saudi Arabia
    Posts
    3
    Vote Rating
    0
      0  

    Default

    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?

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    The slots are just dataviews so you can change the data in the stores
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •