Can't we change the empty text of a grid dynamically. is there a proper method to do it.
for example one empty text for when data is empty, one for after applying a filter and data is empty.
thank you
Printable View
Can't we change the empty text of a grid dynamically. is there a proper method to do it.
for example one empty text for when data is empty, one for after applying a filter and data is empty.
thank you
You may have to change the el also.
Thanks,
here what i did,
var grid=this.up('grid'),
view=grid.getView();
if(view){
view.emptyText="SAMPLE EMPTY TEXT";
view.refresh();
}
Maybe it helps:
http://www.sencha.com/forum/showthre...s-an-exception