cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui.treetable scrolling content not moving

renata06
Explorer

Hello guys,

I'm facing some issues when I try to display some Switch objects into a sap.ui.table TreeTable's columns.

This is the code in the xml view:

<t:Column label="Activation" width="8%"> <t:template> <Switch id="switchId" type="AcceptReject" change="onChangeState" state="{= ${Switch} === '' ? false : true }" enabled="true"> <layoutData> <FlexItemData growFactor="1"/> </layoutData> </Switch> </t:template> </t:Column>

See the display before scrolling:

Please, see the display after scrolling:

Thank you in advance!!!

Accepted Solutions (1)

Accepted Solutions (1)

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

"sap.ui.table.Table" has a limited set of supported controls. Unfortunately, "sap.m.Switch" is not one of them since it's too big (also the icons in other columns look quite big). This breaks the calculation of the vertical scrollbar. For supported controls, see the footnote in https://ui5.sap.com/#/topic/148892ff9aea4a18b912829791e38f3e.html as well as Note 2420757.

You could replace the Switch with, for example, ToggleButton or CheckBox.

renata06
Explorer
0 Kudos

Thank you very much for your information!

Have a good day!

Answers (0)