View Full Version : grid refresh no results

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();

24 Sep 2009, 3:23 AM
try grid.getStore().getLoader().load() it may help u

24 Sep 2009, 5:09 AM
Did you check the Grid FAQ - Grid still shows records even when it should be empty section (http://www.extjs.com/learn/Ext_FAQ_Grid#Grid_still_shows_records_even_when_it_should_be_empty)?