Rohit
Rohit

Reputation: 34

How do I show a scroll bar in SmartTable of SAPUI5?

How to bring ScrollBar Option in SAPUI5 SmartTable control?

It is not showing scrollbar by default and columns on right are not able to see.

Upvotes: 0

Views: 4272

Answers (3)

dreamstate
dreamstate

Reputation: 179

No scrollbar in your smartTable setup? Ensure your smartTable is in first ;). That fixed it for me. I had an m.Table in there and set smartTable's tableType property to just Table

Upvotes: 0

dotchuZ
dotchuZ

Reputation: 2641

Use "ScrollContainer" (sap.m.ScrollContainer) Element around the table, would be the easiest. Otherwise use "FixedColumns"-Option of the table, then scrollbar is integrated automatically (fixedColumnCount : int (default: 0) and fixedRowCount : int (default: 0)

Upvotes: 2

Matti.b
Matti.b

Reputation: 360

a SmartTable should do that by default. I think it depends more on where you want the control to show. Did you put it in a view or page? If you look at the example on UI5 Explored you can see it's put in a page where scrolling is disabled. Also the VBox has fitContainer set to true. Can you reproduce that example?

Upvotes: 2

Related Questions