This post is to share a trivial issue I faced with OjTable and how I resolved the same.
This might be a simple and common issue, but might help those who have not figured out the root cause.
<oj-paging-control id="paging" data='[[localPagingDatasource]]' page-size='5' layout="auto" maxPageLinks="10" slot='bottom'>
</oj-paging-control>
Here I expected the table to show 5 rows per page. However the data exceeded this and showed all the data at once.
To resolve this , I have used fetchSize:5 in the oj collection as below :
This will make sure only 5 rows are shown per page.
Thanks for reading,
Srikanth
No comments:
Post a Comment