Fixed unsync of selected items with server paging also when using the select all checkbox

With reference to the PR #209 Fixed unsync of selected items with server paging, when using the select/unselect all checkbox there were sync issues fixed by this PR