1. #1
    Sencha User
    Join Date
    Jun 2014
    Posts
    6
    Vote Rating
    0
    roshan.khandelwal is on a distinguished road

      0  

    Default beforeadd event on a form

    beforeadd event on a form


    I am looking to use the beforeadd event on a form .
    However what i have seen is that it fires on only while the highest level elements are being added .

    So ::
    If I have a form that has three containers , which have two items each , which again are containers and each of these containers have elements [ textField and combo ] , then the beforeadd is run only thrice .

    If it were to run recursively , applying something to all the elements [ Or elements with a certain property ] within the form would be easier .

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    3,831
    Vote Rating
    72
    Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough

      0  

    Default


    I'm not sure that this kind of event capturing is supported by all browsers. Here's an older thread about it:
    http://www.sencha.com/forum/showthread.php?35899
    Get on the Fast Track with Sencha Training http://sencha.com/training