2
Vote

Error computing the page number in ExtendedContentQueryWebPart

description

In ExtendedContentQueryWebPart.ProcessItems(DataTable dt), numPages is computed like this:
this.numPages = (int) Math.Round((double) (((double) dt.Rows.Count) / ((double) this.ItemsPerPage)));
 
This is wrong because if you have 5 items and ItemsPerPage = 4 you only get 1 page instead of two.
 
Is there a way to get a new version solving this?

comments