cancel
Showing results for 
Search instead for 
Did you mean: 

How to maximize/minimize the groups in List-Grouping?

Former Member
0 Kudos

Hello,

I have a usecase wherein there is a list & when I click on a list item it should open another list with few items in it.

In this example SAPUI5 Explored it's already having a list which is grouped in to category. This suits my usecase very well except that I should be able to hide the list items of a particular group when not in need.

Is there any other control for this requirement? if not, how to achieve this?

Thanks,

Rashmi

Accepted Solutions (1)

Accepted Solutions (1)

kai2015
Contributor
0 Kudos

If your data is already grouped, you can use panels. SAPUI5 Explored

For each panel you can create then a list with the children.

Former Member
0 Kudos

Thanks for quick reply.

Yes my data is already grouped. I am using splitapp. Instead of 2 masters, I thought of going for grouping, so that I can add  search on group & list at the same time.

So you mean in master I can use panel with list in it?

kai2015
Contributor
0 Kudos

If your search will generate new data it is possible by using panels.

Do you use js or xml for the view?

Former Member
0 Kudos

we use xml views.. does it make any difference?

kai2015
Contributor
0 Kudos

No, but I would like to give you a sample template 🙂

example data structure:

results

     0

          title

          results

               0 ... ...

               1 ... ...

     1

          title

          results

                ...

xml template:


<ListBase items="{path: 'Data>/results'  }">

     <CustomListItem>

            <Panel

                    expandable="true"

                    expanded="false"

                    headerText="{Data>title}">

                         <ListBase items="{path: 'Data>results'  }">

                              <CustomListItem>

                                        //  ...children items here

Former Member
0 Kudos

Thank you. This is helpful

Answers (0)