2 weeks ago
Hello Experts,
Is there any we can collapse / expand data on the sap.m.Table at the Group level? We are expecting large data and we wanted to see if we can collapse data by default to the user.
In other way we are trying to Group the data and utilize Tree table expand / collapse feature.
Thanks,
Sridhar
sap.m.Table is not intented to display large amounts of data. As a matter of fact, by default sap.m.Table displays only 100 items if growing property with a large growingThreashold is not set.
If you have control over your backend OData service, consider using sap.ui.Table.AnalyticalTable as it has collapse/expand feature on groups. In order to use AnalyticalTable, your OData should be properly annotated. See Table Groupings for more information.
If you want to stick to sap.m.Table, you can implement a custom group header using groupHeaderFactory property of items binding of the table. Here's how you might want to do it:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.