Trying to figure out New-UDDataGrid with custom page sizes

Product: PowerShell Universal
Version: 3.3.5

I am using the example Data Grid - PowerShell Universal
Looks like I must live with 5 rows on initial load and when I use -PageSize (any number ) I see no difference as it always 5 rows.

If I use rowsperpageoptions for example -AutoHeight -PageSize 4 -RowsPerPageOptions @(1,2,3,4,5,6,7,8,9,10)
I get 5 rows rendered and when I select any ‘rows per page’ the rows rendered match the one selected.

If I use rowsperpageoptions for example -AutoHeight -PageSize 4 -RowsPerPageOptions @(1,2,3,4,6,7,8,9,10) where I do not include a 5 there is now no option ‘rows per page’.
There is a built in requirement for 5 rows per page and I validated this in the console message “MUI: the page size ‘5’ is not present in the ‘rowsperpageoption’ add it to show the pagination select”

How can I get the pagesize I want when the table first loads?

Also it looks like the export is only getting the data from the current page.

how can I export all the rows when using Pagination?

Did you ever figure out export all rows using pagination?

No, but I am having good success with New-UDTable

@adam Can you give some tips here? Experincing the same as the original poster - pagination # is not respected no matter what you throw at it. Will display 5 entries all the time.

This will be fixed in 3.5

1 Like

Thanks for the update - will stop banging my head to the wall then.