Skip to Content

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

Apr 19, 2017 at 10:16 AM


avatar image
Former Member

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 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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VIPLOVE KHUSHALANI 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 :



10 |10000 characters needed characters left characters exceeded