1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    India
    Posts
    1
    Vote Rating
    0
    ajeeshkumar is on a distinguished road

      0  

    Default Unanswered: ExtJS Date Picker disable Dates after a Particular Date

    Unanswered: ExtJS Date Picker disable Dates after a Particular Date


    Hi..
    I want to enable only a range of values before a particular date. I am doing a birthday datepicker. The one with more than 18 years of old should be able to register. So I have to disable all the dates which does not satisfy this condition. Could you please help me!

    Thanks!!

  2. #2
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    203
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    Yep..
    Use maxDate property of the datepicker..
    Set the value to
    Code:
    value = new Date();
    value.setYear(value.getYear()-18);

  3. #3
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    You can add a listener before each page load then use setMaxValue method of date field with a function that calculates the right max. date value.
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi