Update how many rows is visible

This is a hack a best solution would be implementing max-height, but since this is not going to be supported anymore, this solution works, where it returns up to 20000 records to be shown at screen. If paging is enabled only pagesize is still visible.