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