cancel
Showing results for 
Search instead for 
Did you mean: 

Two lists in a view

mdixit_1401
Explorer
0 Kudos

Hi Experts,

I have a requirement to show two lists one below the other with scrollbar for each of them. I tried using grid but I am not able to get the scrollbar for individual list. Please help.

Thanks,

Mansi

Accepted Solutions (0)

Answers (5)

Answers (5)

sanjoy0308
Active Participant
0 Kudos
Former Member
0 Kudos

One way is to create a view for each list. Call them from the main as below.

Initial View:

<Page title="2 Lists">

  <content>

  <mvc:XMLView viewName="TestForm.view.view1" height="50%"></mvc:XMLView>

  <mvc:XMLView viewName="TestForm.view.view2" height="50%"></mvc:XMLView>

  </content>

</Page>

View1 & View2 sample code like below to display your list:

<App height="100%">

<Page>

  <List items="{fruits>/}">

  <items>

  <StandardListItem title="{fruits>name}">

  </StandardListItem>

  </items>

  </List>

</Page>

</App>

karthikarjun
Active Contributor
0 Kudos

Will this help?  http://jsbin.com/matule/edit?html,output

Else, please let us know

sanjoy0308
Active Participant
0 Kudos

Hi Mansi,

If you place two lists one after another without any container/layout with scroll enabled, is that not solving problem?

Regards,

Sanjoy

karthikarjun
Active Contributor
0 Kudos

can you please share your code

Former Member
0 Kudos

Hi Mansi,

You can try with ScrollContainer.

Check the sample at SAPUI5 Explored

Regards

Mayank Jain