1. #1
    Ext JS Premium Member devtig's Avatar
    Join Date
    Jan 2010
    Location
    Rotterdam, The Netherlands
    Posts
    394
    Vote Rating
    14
    devtig will become famous soon enough

      0  

    Default Change event on form

    Change event on form


    I'd like to listen to my form to know if any field has changed, but I can't find a change event on form. I can listen to clientValidation, but that doesn't tell me if a value has changed (not without comparing hashes of getValues() or something). Don't want to iterate through all fields applying a listener to a change event either. (I've looked through the forums, but couldn't find nothing. Did find http://hutten.org/bill/extjs/2009/11...ng-for-al.html )

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    Code:
    Ext.form.Field.prototype.initComponent = Ext.form.Field.prototype.initComponent.createSequence(function() {
        this.enableBubble('change');
    });
    Then listen for change on the FormPanel (or, in fact on any ancestor Container)

  3. #3
    Ext JS Premium Member devtig's Avatar
    Join Date
    Jan 2010
    Location
    Rotterdam, The Netherlands
    Posts
    394
    Vote Rating
    14
    devtig will become famous soon enough

      0  

    Default


    Thanks man. That goes into my ExtOverrides.js.

Similar Threads

  1. Ext.form.ComboBox, change Event doesn't work
    By Enrico in forum Ext 1.x: Bugs
    Replies: 16
    Last Post: 13 Mar 2014, 1:45 AM
  2. Replies: 4
    Last Post: 23 Jul 2010, 4:51 AM
  3. [2.2.1] Bug in Ext.form.DateField "change" event on IE7
    By devil1591 in forum Ext 2.x: Bugs
    Replies: 11
    Last Post: 17 Apr 2009, 9:10 AM
  4. Ext.form.DateField change Event question
    By pinney.colton in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Aug 2008, 12:44 PM

Thread Participants: 1