Ext version tested:




Browser versions tested against: Description:

  • When i do removeAll() on a store, emptyText is displayed as expected.

  • When i do removeAt(0) with 1 item in the store, emptyText is not displayed in the grid.


Steps to reproduce the problem:

  • In the fiddle toggle between removeAll() and removeAt(0)


The result that was expected:

  • Regardles of the remove function used, emptyText should be displayed when there are no items left in the store


The result that occurs instead:

  • emptyText only appears when removeAll() is called


More information

  • I tested in the fiddle below that grid.getView().refresh() makes the emptyText update. In the fiddle above i do grid.getView().refresh() in the store remove event. This remove event is called on removeAt() and not removeAll(). But the refresh does not display the emptyText either.