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
    193
    Answers
    41
    Vote Rating
    7
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar