Reputation: 582
I have an OpenUI5 xml view with 2 tables beneath each other.
I want the first one to display 5 rows at a time and the second one to display 20 rows.
What property do I need to set to get this?
EDIT: I'm using a sap.ui.table not the sap.m.table
Upvotes: 3
Views: 8675
Reputation: 287
If in case its sap.ui.table.Table then use visibleRowCount='10' it will show 10 row data to user and if data is more that 10 it show scroll bar.
Upvotes: 0
Reputation: 249
To paginate a table these 3 properties are needed:
growing="true"
growingThreshold="5"
growingScrollToLoad="false"
growing: enables pagination
growingThreshold: maximum rows in one page
growingScrollToLoad: set to false to display page numbers (if this value is true, a lazy loading is implemented)
Upvotes: 3