Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

TreeTable visibleRowCount

$
0
0

Hi All,

 

may be someone knows how to set an automatic adoption of visibleRowCount of the element TreeTable according to the number of rows.

In WDA it is enough to set rowCount = -1. And a number of rows will be automatically expanded according to content.

 

trying to make as

 

oXMLSchemaTable = new sap.ui.table.TreeTable({  columns: [ new sap.ui.table.Column({label: "Node", template: "name"}),             new sap.ui.table.Column({label: "Description", template: "description"}) ],  selectionMode: sap.ui.table.SelectionMode.None,  allowColumnReordering: false,  visibleRowCount: 2,   expandFirstLevel: false,  toggleOpenState: function(oEvent) {     oXMLSchemaTable.setVisibleRowCount( oXMLSchemaTable.getRows().length )   }
});

 

but getRows().Length is always equal to 2.

 

Any ideas?

 

Thanks in advance.

 

Best Regards

Konstantin Anikeev


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>