function IsEnoughSortedRecord(showPageNumX){
            var isAllRecordsExists = true;

            var numOfRecordPerPage = $scope.numOfRecordPerPage;
            var recordNumberStart = (showPageNumX - 1) * numOfRecordPerPage;
            var recordNumberEnd = showPageNumX * numOfRecordPerPage - 1;

            for(var recordCounter = recordNumberStart; recordCounter < recordNumberEnd; recordCounter++){
                if(typeof($scope.sortedDataSource[recordCounter]) == "undefined"){
                    isAllRecordsExists = false;
                    break;
                }
            }

            return isAllRecordsExists;
        }
// showPageNumX = 2, numOfRecordPerPage = 10, record start from 11 to 20
showPageNumX = 2, numOfRecordPerPage = 10, record start from 11 to 20
showPageNumX = 2 numOfRecordPerPage = 10 record start from 11 to 20
function IsEnoughSortedRecord(showPageNumX){
            var isAllRecordsExists = true;
            var numOfRecordPerPage = $scope.numOfRecordPerPage;
            var recordNumberStart = (showPageNumX - 1) * numOfRecordPerPage;
            var recordNumberEnd = showPageNumX * numOfRecordPerPage - 1;
            for(var recordCounter = recordNumberStart; recordCounter < recordNumberEnd; recordCounter++){
                if(typeof($scope.sortedDataSource[recordCounter]) == "undefined"){
                    isAllRecordsExists = false;
                    break;
                }
            }
            return isAllRecordsExists;
        }
function IsEnoughSortedRecord ( showPageNumX ) { var isAllRecordsExists = true ; var numOfRecordPerPage = $scope . numOfRecordPerPage ; var recordNumberStart = ( showPageNumX - 1 ) * numOfRecordPerPage ; var recordNumberEnd = showPageNumX * numOfRecordPerPage - 1 ; for ( var recordCounter = recordNumberStart ; recordCounter < recordNumberEnd ; recordCounter ++ ) { if ( typeof ( $scope . sortedDataSource [ recordCounter ] ) == "undefined" ) { isAllRecordsExists = false ; break ; } } return isAllRecordsExists ; }
showPageNumX = 2, numOfRecordPerPage = 10, record start from 11 to 20
showPageNumX = 2 numOfRecordPerPage = 10 record start from 11 to 20