PDA

View Full Version : Problems with getEl()



crocop21
17 May 2012, 5:49 AM
Hi im try to show a mensage but i have this error:

el is undefined



chrome://firebug/content/blank.gif

if (el.isComponent) {



This is mi code:






var grid = Ext.create('MyApp.view.MyGridPanel');
var gridMask = new Ext.LoadMask(grid.getEl(),{msg:"Save..."});
gridMask.show();

scottmartin
17 May 2012, 6:13 AM
You can use grid.setLoading('Save ...');

Regards,
Scott.

crocop21
17 May 2012, 6:29 AM
var grid = Ext.create('MyApp.view.MyGridPanel');
var gridMask = new Ext.LoadMask(grid.setLoading('Save ...'));
gridMask.show();


Same problem... im in the controller, in the controller action, event onButtonClick... try to show the menssage when i do click..

el is undefined



chrome://firebug/content/blank.gif

if (el.isComponent) {