Skip to Content

sap.m.table scroll jumps back to top after data load while scrolling

Hi,

I have a sap.m.table which contains a lot of data. I want to use growing. Here is it's code :

<Table id="addMaterialDialogTable" busyIndicatorDelay="0" growing="true" growingScrollToLoad="true" growingThreshold="50" mode="None"
				items="{/mat_listSet}" select="onCreateItemDetailsTablSelected">
				<headerToolbar>
					<Toolbar>
						<ToolbarSpacer/>
						<SearchField id="addMaterialSearchFld" placeholder="{i18n>searchByMatName}" search="onMaterialDialogTableSearch"/>
					</Toolbar>
				</headerToolbar>
				<columns>
					<Column width="3em"></Column>
					<Column></Column>
				</columns>
				<items>
					<ColumnListItem>
						<cells>
							<Text text="{Matnr}"/>
							<Text text="{Maktx}"/>
						</cells>
					</ColumnListItem>
				</items>
			</Table>

I handled the top-skip in OData. It only returns 50 rows each time according to top-skip parameters. When I scroll to the bottom; it sends a request to fetch data. But screen jumps back to top of table. Every time when I scroll down to the bottom, it jumps back. I tried different SAPUI5 versions.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 02 at 08:09 AM

    The table was inside a dialog. Setting dialog's height to 500px somehow fixed it.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 28 at 12:36 PM

    Did you get a solution for this problem?. Even I am facing the same.

    Add comment
    10|10000 characters needed characters exceeded