Skip to Content
avatar image
Former Member

How to expand or collapse all rows of a sap.m.table?

Hi Experts,

In my SAP UI5 mobile application,I have a sap.m.table which has multiple rows and 7 fields are placed on each row.The requirement is that,I should be able to expand and collapse each row present in the table,so that more scrolling is avoided.How can this be done.I tried using sap.m.Panel and sap.ui.commons.Accordion and tried putting the entire table inside the panel/Accordion.Then,the entire table gets collapsed and expanded.Since tree table is not sap.m.mobile control,Iam unable to use that too.Is there any ways by which I can expand or collapse each row of a sap.m.table.Please provide your valuable suggestions

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 19, 2017 at 10:49 AM

    Hi Rahulraj ,

    Why u want to expand collapse each row, expand collapse comes into picture when there is categorization as you can see in the example of the tree table. Instead of this you can use growing property of listbase : https://sapui5.hana.ondemand.com/explored.html#/entity/sap.m.ListBase/properties

    thanks

    VIplove

    Add comment
    10|10000 characters needed characters exceeded