Wednesday, 11 December 2019

sap.m.List Scroll to specific Item

I'm using sap.m.List in my SAPUI5 Application. There are 90 Entries, one for each day in the last 3 Month. Looks like this:

enter image description here

Now I want to scroll to a specific CustomListItem, when a Button is clicked. My View is looking like this: enter image description here

The Idea is that I have three Buttons for scrolling directly to an month. For example: Today, last Month, third Month. Clicking the Button directly scrolls to the first entry of that month. I just found sth. like oList.setSelectedItem(oItem, true); which has no effect.

Someone has an idea how this can be done?

Thank you in advance.



from sap.m.List Scroll to specific Item

No comments:

Post a Comment