cancel
Showing results for 
Search instead for 
Did you mean: 

Remove vertical scrollbar in sap.ui.table.treetable

former_member604560
Participant
0 Kudos

Hi Everyone,

I want to remove vertical scrollbar in the treetable.

Below is the code:-

<ui:TreeTable fixedColumnCount="1" rowSelectionChange="onRowSelectionChange" id="TreeTableBasic1" rows="{path:'/catalog', parameters : { numberOfExpandedLevels: 2 }}" selectionMode="Single" enableSelectAll="false" visibleRowCountMode="Auto" visibleRowCount="12">

Accepted Solutions (0)

Answers (2)

Answers (2)

smarchesini
Active Contributor

Hi meenakshi.a.n. ,


the faster and simpler solution is change the number or visible row:

<ui:TreeTable fixedColumnCount="1" rowSelectionChange="onRowSelectionChange" id="TreeTableBasic1" rows="{path:'/catalog', parameters : { numberOfExpandedLevels: 2 }}" selectionMode="Single" enableSelectAll="false" visibleRowCountMode="Auto" visibleRowCount="10">

try with 10,

regards,
Sebastiano

Sharathmg
Active Contributor
0 Kudos

Redesign. Table when they have entries will provide the scroll. If you are getting scrollers - horizontal or vertical then your design needs to be relooked.

Maybe: put one table below another, maybe put less rows...try redesign instead of suppressing the default behavior.

Regards,

Sharath