Skip to content
Snippets Groups Projects
Commit 0f563da1 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Polish the method addFormPanel.

parent 593f0cad
No related branches found
No related tags found
No related merge requests found
......@@ -75,14 +75,14 @@ App.grid.RowEditor = Ext.extend(Ext.Window, {
// This approach relies on the Ext.StrMgr.
// However this approach creates confusion in listeners.
// It is why we force the use of the same object.
this.formPanel.store = this.grid.store;
formCfg.store = null;
// instanciate the form
this.formPanel = Ext.ComponentMgr.create(formCfg);
this.formPanel.store = this.grid.store;
this.add(this.formPanel);
// add a listeners to catch store exception
// since listener on the formPanel never fire in this context !
// add a listeners to catch the store exception
this.grid.store.on('exception',
this.formPanel.onStoreException,
this.formPanel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment