Page 1 of 1

Page Size Dropdown Box Does Not Refresh Page

Posted: Sep 4th, '13, 17:54
by dkochan
I upgraded the PHP DataGrid from 7.7.7 to 7.9.9 and encountered the following bug:

After choosing a value in the in the Page Size Dropdown Box the page does not refresh. For example, nothing happens when I change the Page Size from 10 records to 25 records.

Re: Page Size Dropdown Box Does Not Refresh Page

Posted: Sep 5th, '13, 08:08
by administrator
Thank, already fixed.
Please find this line of code:

Code: Select all

$text .= $this->DrawDropDownList('page_size'.$type, '_doPostBack("page_resize","","'.$href_string.'&'.$this->uniquePrefix.'page_size="+document.frmPaging'.$this->uniquePrefix.$type.'.page_size'.$type.'.value)', $this->arrPages, $this->reqPageSize);

and replace with

Code: Select all

$text .= $this->DrawDropDownList('page_size'.$type, '_doPostBack(\'page_resize\',\'\',\''.$href_string.'&'.$this->uniquePrefix.'page_size=\'+document.frmPaging'.$this->uniquePrefix.$type.'.page_size'.$type.'.value)', $this->arrPages, $this->reqPageSize);

Re: Page Size Dropdown Box Does Not Refresh Page

Posted: Sep 8th, '13, 14:18
by dkochan
Thanks! I modified datagrid.class.php with the new code that you provided and, it fixed the problem.