1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    12
    Vote Rating
    0
    mjfigur is on a distinguished road

      0  

    Default DateField valid and call function

    DateField valid and call function


    All,

    I am sure this is a pretty easy question but it is just causing me some issues. I am using ExtJS 3.3.1 and below is my code for a DateField. When the DateField is valid I would like it to call this function, however nothing is currently happening when I change the field.

    Thank you in advance for your assistance.

    Matt

    Code:
     new Ext.form.DateField({
                id: dt.id,
                applyTo: dt,
                "format": 'm/d/Y',
    			invalidClass : 'ux-status-error',
    			validateOnBlur : true,
    			valid: function () {refreshEmp();
    			}
                //"altFormats": 'j|j/n|j/n/y|j/n/Y|j-M|j-M-y|j-M-Y'
            });

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,625
    Vote Rating
    331
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

Thread Participants: 1

Tags for this Thread