-
1 Sep 2010 3:37 AM #1Ext JS Premium Member
- Join Date
- Jan 2010
- Location
- Rotterdam, The Netherlands
- Posts
- 383
- Vote Rating
- 8
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 )
Christiaan Westerbeek @ Devotis
STOIC ninja, Ext JS expert, Google Apps reseller, Marketing technologist
-
1 Sep 2010 4:24 AM #2
Then listen for change on the FormPanel (or, in fact on any ancestor Container)Code:Ext.form.Field.prototype.initComponent = Ext.form.Field.prototype.initComponent.createSequence(function() { this.enableBubble('change'); });Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
1 Sep 2010 4:30 AM #3Ext JS Premium Member
- Join Date
- Jan 2010
- Location
- Rotterdam, The Netherlands
- Posts
- 383
- Vote Rating
- 8
Thanks man. That goes into my ExtOverrides.js.
Christiaan Westerbeek @ Devotis
STOIC ninja, Ext JS expert, Google Apps reseller, Marketing technologist
Similar Threads
-
[OPEN-905] Ext.ux.form.SpinnerField change event does not fire
By yakovsh in forum Ext 3.x: BugsReplies: 4Last Post: 23 Jul 2010, 4:51 AM -
[2.2.1] Bug in Ext.form.DateField "change" event on IE7
By devil1591 in forum Ext 2.x: BugsReplies: 11Last Post: 17 Apr 2009, 9:10 AM -
Ext.form.DateField change Event question
By pinney.colton in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 6 Aug 2008, 12:44 PM -
Ext.form.ComboBox, change Event doesn't work
By Enrico in forum Ext 1.x: BugsReplies: 15Last Post: 31 Aug 2007, 11:53 AM


Reply With Quote