View Full Version : [CLOSED][DUP][3.0.0]PagingToolbar not showing empty message when store is empty

10 Aug 2009, 11:15 PM
I'm using the Ext.PagingToolbar with cfg param "emptyMsg" (in every case it have a default message), but also if my store is empty, the emptyMsg is not diplayed.

The emptyMsg is set from the updateInfo function (it is declared as private).

updateInfo : function(){
var count = this.store.getCount();
var msg = count == 0 ?
this.emptyMsg :
this.cursor+1, this.cursor+count, this.store.getTotalCount()

Unfortunatelly the updateInfo function is called from the onLoad function but onLoad is not called if store is empty

bindStore : function(store, initial){
var doLoad;
if(!initial && this.store){
this.store.un('beforeload', this.beforeLoad, this);
this.store.un('load', this.onLoad, this);
this.store.un('exception', this.onLoadError, this);
if(store !== this.store && this.store.autoDestroy){
store = Ext.StoreMgr.lookup(store);
scope: this,
beforeload: this.beforeLoad,
load: this.onLoad,
exception: this.onLoadError
doLoad = store.getCount() > 0;
this.store = store;
this.onLoad(store, null, {});

Only of store count is > 0 the onLoad is called... so the empty message seems never used.

I believe this is a bug.


10 Aug 2009, 11:21 PM
Thanks for the report, but it's already been fixed in SVN, please do a search before posting.

Marking this as closed.

11 Aug 2009, 12:35 AM
Ty and sorry
I try to looking for open issue, but I found only http://extjs.com/forum/showthread.php?t=21167

I believe that it is not easy looking for bug issue in a forum.
Have ExtJS think to use an alternative way for bug reporting ? (at least only for bugs.. not for help)

Probably something more structured can help us to found issue
E.g. having a category / component and so on...
Have you never see JIRA (http://www.atlassian.com/software/jira/) : JIRA is free for any Open Source project to use.

11 Aug 2009, 12:36 AM
We do use a tracking tool internally. At this point I don't think we're going to make it public.