PDA

View Full Version : Changing grid.emptyText on the fly



Kotolom
15 Jan 2013, 2:55 AM
It seems to be a problem (bug) with emptyText property at all.
What I'm trying is to change the empty text string depending on some parameters.

the construct


me.getStore().on(
{
'load': function(params) {
me.emptyText = someParams ? 'assets found' : 'assets not found';
Ext.defer(function() { me.getView().refresh(); }, 100);
}
}
);


doesn't work. When I trace emptyText property it is chaged. But it has no effect on shown string.

Is there known workaround?

evant
15 Jan 2013, 3:25 AM
What does "me" refer to at this point?

Kotolom
16 Jan 2013, 12:15 AM
What does "me" refer to at this point?


the grid

evant
16 Jan 2013, 2:08 AM
me.getView().emptyText = 'Foo';