blow
24 Sep 2009, 1:35 AM
Hi there,
I know this is a common asked question however solutions given so far haven't helped me out.
The emptyText just works fine, if the grids first load contains no data.
However if it does a second load ( for example a grid search ) with no results, the old results keeps visisble instead of the emptyText message.
I also tried to add a Ext.getCmp('grid').getView().refresh(); after the search but this also didn't update te grid to the emptyText.
search func:
function doSearch () {
var value = Ext.getCmp('term').getValue();
store.load({params:{start:0,limit:100,term:value}});
Ext.getCmp('grid').getView().refresh();
}
I know this is a common asked question however solutions given so far haven't helped me out.
The emptyText just works fine, if the grids first load contains no data.
However if it does a second load ( for example a grid search ) with no results, the old results keeps visisble instead of the emptyText message.
I also tried to add a Ext.getCmp('grid').getView().refresh(); after the search but this also didn't update te grid to the emptyText.
search func:
function doSearch () {
var value = Ext.getCmp('term').getValue();
store.load({params:{start:0,limit:100,term:value}});
Ext.getCmp('grid').getView().refresh();
}