1. #1
    Ext JS Premium Member JTM's Avatar
    Join Date
    Mar 2007
    Location
    Plymouth, MI
    Posts
    50
    Vote Rating
    0
    JTM is on a distinguished road

      0  

    Default [CLOSED] DateField maxValue doesn't disable dates

    [CLOSED] DateField maxValue doesn't disable dates


    When setting a maxValue in a DateField object, the invalid dates are not disabled in the DatePicker object


    new Ext.form.DateField({
    fieldLabel: 'Select Date',
    name: 'myDate',
    maxValue : new Date(),
    maxText : 'nothing in the future',
    })


    In the above example, any thing in the future will fail validation, but future dates are still allowed to be selected in the DatePicker.

  2. #2
    Ext User
    Join Date
    Feb 2008
    Posts
    11
    Vote Rating
    0
    max52 is on a distinguished road

      0  

    Default


    When I set [FONT=Courier New] maxValue : new Date()like this, I get always an error.

    I call a function for this and then it

  3. #3
    Ext User
    Join Date
    Jun 2008
    Posts
    69
    Vote Rating
    0
    mthad is on a distinguished road

      0  

    Default


    [quote=max52;143324]When I set maxValue : new Date()like this, I get always an error.

    [FONT=Courier New]I call a function for this and then it

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    I just verified the example in the first post and it works fine for me. If this is still an issue, please post a full test case and details per http://extjs.com/forum/showthread.php?t=8887