Skip to Content
0

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

Apr 19, 2017 at 10:16 AM

703

avatar image

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

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
0

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

Share
10 |10000 characters needed characters left characters exceeded