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.
Page Size Dropdown Box Does Not Refresh Page
Moderator: alexandrleonenko
-
- Site Admin
- Posts: 6016
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Page Size Dropdown Box Does Not Refresh Page
Thank, already fixed.
Please find this line of code:
and replace with
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
Thanks! I modified datagrid.class.php with the new code that you provided and, it fixed the problem.