Pagination page size defaults to 10 even when that is not an item in page-sizes array.
MrBliz opened this issue · comments
I'm not setting the page size on my view model, and it was my understanding that the page size defaulted to the first item in the page-sizes.bind array, so my initial page size should be 25, but on loading only 10 records are shown. i can see the default page size is 10 when initialising the parameters, but the default behavior seems to have changed. Is that right?
<div class="col-md-4">
<strong>Rows / Page</strong>
<au-datatable-pagesize page-sizes.bind="[25,50,100]" classes="form-control" on-page-size-change.bind="refresh" parameters.bind="parameters">
</au-datatable-pagesize>
</div>
<div class="col-md-8 text-right">
<div>
<au-datatable-pagination class="float-right" on-next-page.bind="refresh" on-previous-page.bind="refresh" on-page-change.bind="refresh"
parameters.bind="parameters">
</au-datatable-pagination>
</div>
<div>
<au-datatable-info parameters.bind="parameters">
</au-datatable-info>
</div>
</div>
Hi, it should default to the first item of your page sizes list. I'll look into it ASAP, thanks for the issue!