J_rite
J_rite

Reputation: 582

sap ui table max rows visible

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

Answers (2)

suryabhan mourya
suryabhan mourya

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

Thomas L.
Thomas L.

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

Related Questions