PDA

View Full Version : Bug with paging toolbar not updating pagecount



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

mystix
30 Jul 2007, 5:45 PM
8887

[edit]

Reason: mystix wanted a version number i think...
yes i did ;)

UnarmedHunter
21 Dec 2007, 3:34 AM
hi,
i'm using version 2.0 (rev 1450) and got the same problem.
is there any other way around this, since i don't want to change the ext-all.js file?

Choleriker
26 Dec 2007, 5:06 AM
I have the same problem with version 2.0 too. My paging-buttons and page-count and so on arent updated while loading the first time. What can i do?

mystix
26 Dec 2007, 7:24 AM
hi,
i'm using version 2.0 (rev 1450) and got the same problem.
is there any other way around this, since i don't want to change the ext-all.js file?


I have the same problem with version 2.0 too. My paging-buttons and page-count and so on arent updated while loading the first time. What can i do?

@UnarmedHunter & @Choleriker, please start a new thread in the 2.0 Bugs forum (if this case has not been reported before), with a link back to this thread and a sample of the test code both of you used to produce this bug. thanks.

MaxT
7 Jan 2008, 1:14 AM
This doesn't look like a bug. updateInfo() is a private method. The fact that it doesn't do what you want it to do doesn't make it a bug. The easiest solution would be to add another custom method to do what you want, or to override this one with a new updateInfo() method in a separate js file that you include after the ext libs.

Max