Skip to Content
0
Jun 25, 2018 at 09:00 PM

How to scroll grid table? sapui5

1071 Views Last edit Jun 26, 2018 at 12:27 PM 6 rev

Hi, I want to know why my grid table it's only scrooling the "Address" Field. I want to know

<mvc:View controllerName="DisplaySuppliers.controller.App" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"
	xmlns:u="sap.ui.unified" xmlns:c="sap.ui.core" displayBlock="true" xmlns:m="sap.m" xmlns="sap.ui.table">
<m:App>
<m:pages>
<m:Page title="{i18n>title}" showHeader="false" enableScrolling="false" class="sapUiContentPadding">
<m:content>
<m:OverflowToolbar id="otbSubheader" class="sapUiMediumMarginTop">
<m:ToolbarSpacer/>
<m:Label text="Nome/Razão Social"/>
<m:SearchField liveChange="filterGlobally" width="200px"/>
<m:Label text="Código"/>
<m:SearchField liveChange="onSearch" width="200px"/>
<m:Label text="CPF/CNPJ"/>
<m:SearchField liveChange="onSearch" width="200px"/>
<m:OverflowToolbarButton type="Transparent" text="Ordernar" icon="sap-icon://sort" press="onSort"/>
</m:OverflowToolbar>
<Table rows="{/Suppliers}" selectionMode="Single" selectionBehavior="RowOnly" id="table" ariaLabelledBy="title" rowSelectionChange="onSelectionChange">
<columns>
<Column id="supplierId" width="8em">
<m:Label text="Código"/>
<template>
<m:ObjectNumber number="{ parts:[{path:'SupplierId'}]}"/>
</template>
</Column>
<Column width="14em" id="name">
	<m:Label text="Nome/Razão Social"/>
	<template>
<m:Text text="{Name}"/>
</template>
	</Column>
	<Column width="10em" id="cnpj">
	<m:Label text="CNPJ/CPF"/>
								<template>
									<m:Text text="{Cnpj}, {Cpf}"/>
								</template>
							</Column>
									<m:Text text="{AddressCity}, {AddressCountry} "/>
								</template>
							</Column>
							<Column width="16em" id="email">
								<m:Label text="Email"/>
								<template>
									<m:Text text="{Email}"/>
								</template>
							</Column>
							<Column width="10em" id="ie">
								<m:Label text="IE"/>
								<template>
									<m:Text text="{Ie}"/>
								</template>
							</Column>
							<Column width="10em" id="im">
								<m:Label text="IM"/>
								<template>
									<m:Text text="{Im}"/>
								</template>
							</Column>
						</columns>
					</Table>
				</m:content>
			</m:Page>
		</m:pages>
	</m:App>
</mvc:View>