cancel
Showing results for 
Search instead for 
Did you mean: 

UI5: sap.ui.table.TreeTable with visibleRowCountMode=Auto in a sap.m.Dialog not working?

roland_bouman
Contributor
0 Kudos

This is my xml UI code:

<core:FragmentDefinition
  xmlns:m="sap.m"
  xmlns:core="sap.ui.core"
  xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
  xmlns:layout="sap.ui.layout"  
  xmlns:table="sap.ui.table"
  height="100%"
>
<m:Dialog
  id="fileDialog"
  draggable="true"
  resizable="true"
  icon="sap-icon://folder"
  title="{i18n>filedialog.dialog.title}"
  contentHeight="100%"
>
  <m:content>
	  <table:TreeTable
	    id="workspaceTreeView"
	    visibleRowCountMode="Auto"
	    selectionMode="None"
	    toggleOpenState="onTreeViewToggleOpenState"
	    collapseRecursive="false"
	    height="500px"
	    editable="false"
	    enableColumnReordering="false"
	    fixedColumnCount="1"
	    columnHeaderVisible="true"
	    rows="{
	      path: 'JuicyFileModel>/'
	    }"
	    rowActionCount="0"
	  >


... end tags...


The problem is that when I open the dialog, the table only shows 5 rows. What I want it to do is to use the total available vertical space inside the dialog, but it doesn't.

I have used sap.ui.table.TreeTable before with visibleRowCountMode=Auto and then it just fills out the available room in the container. But not now.

How can I get it to behave the way I want?

View Entire Topic
ryan68
Discoverer
0 Kudos

I set verticalScrolling="false" on sap.m.Dialog control. it works.

roland_bouman
Contributor
0 Kudos

Hi Ryan, thanks for your reply.

That's odd but interesting - I will try this.