EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: doev on December 12, 2013, 05:58:43 AM



Title: Problem with Virtual Scrolling Extension [possible Bug]
Post by: doev on December 12, 2013, 05:58:43 AM
See this example: http://www.jeasyui.com/tutorial/datagrid/datagrid27_demo.html

if You set the pageSize for example to 100, it initial loads only 50 tablerows. When you scroll down, it next loads tabelrows 100-200 and there is a "hole" in the data.


Title: Re: Problem with Virtual Scrolling Extension [possible Bug]
Post by: stworthy on December 13, 2013, 05:03:37 AM
If you set 'pageSize' to 100, please change the corresponding server code as:
Code:
<?php
$page = isset($_POST['page']) ? intval($_POST['page']) : 1;
$rows = isset($_POST['rows']) ? intval($_POST['rows']) : 100;
?>



Title: Re: Problem with Virtual Scrolling Extension [possible Bug]
Post by: doev on December 16, 2013, 12:06:07 AM
Thx! :)