Server side paging with grouping