cancel
Showing results for 
Search instead for 
Did you mean: 

Treetable minRow count with Interactive rowMode

Szczerbowski
Active Participant
0 Kudos
204

Hello, 

I am creating some integration cards of the type component. I managed to integrate treetables in them in composite views. Some of them are quite long, so I used the interactive mode, where the user can enlarge them, but initially they're just 10 rows tall.

This is how I put the table in the content (View):

<t:TreeTable id="treeTable" selectionMode="Single"

        rowMode="Interactive"

        enableColumnReordering="false"
        rows="{
            path : 'products>/nodeRoot',
            parameters: { arrayNames: ['children']}
        }">

 

From the API I understand that now in 1.120 (the version I'm on) the rowMode is an object with some params:
https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.table.rowmodes.RowMode
https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.table.rowmodes.Interactive

But I don't know how to set the params minRowCount or rowCount in the view rather the controller?

Regards,
Michal

View Entire Topic
M-K
Participant

You can set it as element in the XML-View like this (works in this example):

 

<mvc:View
        xmlns="sap.ui.table"
        xmlns:mvc="sap.ui.core.mvc"
        xmlns:mode="sap.ui.table.rowmodes" ...>
            <TreeTable ...>
                <rowMode>
                    <mode:Interactive minRowCount="10" />
                </rowMode>
            </TreeTable>
</mvc:View>

 

 

Szczerbowski
Active Participant
0 Kudos
Hi, yesss, that works perfect. When testing your answer I initially I just missed the include xmlns:mode="sap.ui.table.rowmodes"