Skip to Content

Tiles are not rendering when put inside Grid

Hi Experts,

I am trying to render StandardTile in a Grid, but due to some reason it's not working. however, it works when I remove the Grid & Panel from my code. Can anyone point out what exactly am I doing wrong here?

<code>	<mvc:View xmlns:mvc="sap.ui.core.mvc"
		xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout" xmlns="sap.m"
		controllerName="hanaDashBoard.controller.Home">
		<Page showHeader="false" enableScrolling="false">
			<Toolbar class="sapUiTinyMarginTop" id="toolbar1" height="10%">
				<ComboBox id="SidCombo" width="11.5%" showSecondaryValues="true"
					items="{
						path: '/results'
					}" selectionChange="SidSelect">
					<core:ListItem key='{Key}' text='{Sid}'
						additionalText='{Template}' />
				</ComboBox>
				<Text id="TemplateText"></Text>
				<Text id="SltText"></Text>
				<ToolbarSpacer />
				<Button id="UserName" icon="sap-icon://kpi-managing-my-area"
					enabled="false" type="Transparent" />
			</Toolbar>
			<l:Grid
			id="leGrid"
			class="sapUiSmallMarginTop"
			hSpacing="2"
			visible="false"
			>
			<l:content>
			<Panel width="auto" class="sapUiResponsiveMargin">
			<content>
					<TileContainer id="container"
						width="100%" height="100%" visible="true" tileDelete="handleTileDelete"
						tiles="{/TileCollection}">
						<StandardTile icon="{icon}" type="{type}" number="{number}"
							numberUnit="{numberUnit}" title="{title}" info="{info}"
							infoState="{infoState}" press="handleTilepress" />
					</TileContainer>
			</content>
			<layoutData>
						<l:GridData span="L12 M12 S12" />
			</layoutData>
			</Panel>
			</l:content>
			</l:Grid>
			<footer>
				<Toolbar>
					<ToolbarSpacer />
					<Button id="editbutton" text="Edit" press="tilePressed" />
					<ToolbarSpacer />
				</Toolbar>
			</footer>
		</Page>
	</mvc:View>
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 23, 2017 at 09:31 PM

    Tile in grid should work, can you remove the panel? Or do you need it? Here example grid and tiles: https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.TileContent/code

    Add comment
    10|10000 characters needed characters exceeded