-
15 Jan 2013 2:55 AM #1Sencha Premium Member
- Join Date
- Jun 2011
- Location
- Kaiserslautern, Germany
- Posts
- 7
- Vote Rating
- 0
- Answers
- 2
Answered: Changing grid.emptyText on the fly
Answered: Changing grid.emptyText on the fly
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
doesn't work. When I trace emptyText property it is chaged. But it has no effect on shown string.Code:me.getStore().on( { 'load': function(params) { me.emptyText = someParams ? 'assets found' : 'assets not found'; Ext.defer(function() { me.getView().refresh(); }, 100); } } );
Is there known workaround?
-
Best Answer Posted by evantCode:
me.getView().emptyText = 'Foo';
-
15 Jan 2013 3:25 AM #2Sencha - Ext JS Dev Team
- Join Date
- Apr 2007
- Location
- Sydney, Australia
- Posts
- 15,095
- Vote Rating
- 97
- Answers
- 169
What does "me" refer to at this point?
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
16 Jan 2013 12:15 AM #3Sencha Premium Member
- Join Date
- Jun 2011
- Location
- Kaiserslautern, Germany
- Posts
- 7
- Vote Rating
- 0
- Answers
- 2
the gridWhat does "me" refer to at this point?
-
16 Jan 2013 2:08 AM #4Sencha - Ext JS Dev Team
- Join Date
- Apr 2007
- Location
- Sydney, Australia
- Posts
- 15,095
- Vote Rating
- 97
- Answers
- 169
Code:me.getView().emptyText = 'Foo';
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!


Reply With Quote