I want to set the total number of pages and length of each page in a datatable based on an array. The length of the array should be the number of pages in the datatable and the