sintax.era
30 Jul 2007, 4:27 PM
<edit> RC1.1, firefox, ie7, vista ;)
Hi all, when using updateInfo() it updates the right hand side of the paging toolbar (total records) but doesnt update the pagecount on the lefthand side...I fixed it like this, but there must be a more elegant way of coding it :)
<from pagingtoolbar.js>
updateInfo : function(){
if(this.displayEl){
var count = this.ds.getCount();
var msg = count == 0 ?
this.emptyMsg :
String.format(
this.displayMsg,
this.cursor+1, this.cursor+count, this.ds.getTotalCount()
);
this.displayEl.update(msg);
var d = this.getPageData();
this.afterTextEl.el.innerHTML = String.format(this.afterPageText, d.pages);
}
},
of course if you are using this to fix the problem for yourself, it would need to be added to ext-all.js or ext-all-debug.js or whichever file you are including ;)
Hi all, when using updateInfo() it updates the right hand side of the paging toolbar (total records) but doesnt update the pagecount on the lefthand side...I fixed it like this, but there must be a more elegant way of coding it :)
<from pagingtoolbar.js>
updateInfo : function(){
if(this.displayEl){
var count = this.ds.getCount();
var msg = count == 0 ?
this.emptyMsg :
String.format(
this.displayMsg,
this.cursor+1, this.cursor+count, this.ds.getTotalCount()
);
this.displayEl.update(msg);
var d = this.getPageData();
this.afterTextEl.el.innerHTML = String.format(this.afterPageText, d.pages);
}
},
of course if you are using this to fix the problem for yourself, it would need to be added to ext-all.js or ext-all-debug.js or whichever file you are including ;)