PDA

View Full Version : Ext.form.basic.LoadRecord() Event listener



JSimko
17 Dec 2012, 10:51 AM
Is there an event that gets fired when a record is loaded for a form Ext.form.basic.LoadRecord(record)?

Currently I set a record and then manually call a function within the form but Ideally I'd like to have a listener that I don't have to invoke. Is that possible?

slemmon
17 Dec 2012, 12:06 PM
Don't believe there's an event fired for that. If you define your own form.Panel you could do something like:



loadRecord: function (record) {
this.callParent();
// put whatever next functionality you want here
// callMyFollowUpFunction() // etc.
}

JSimko
17 Dec 2012, 1:55 PM
Alright, I looked around and figured something like that would by my only option.

If said event were to exist I'm assuming it would be listed in the events section of:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.Basic (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.form.Basic)