# ListView vs ScrolBox?

**URL:** <https://forums.unrealengine.com/t/listview-vs-scrolbox/274197>\
**Category:** UI\
**Tags:** unreal-engine\
**Created:** [January 22, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197 "2022-01-22T15:34:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aumenn2003](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aumenn2003/32/88718_2.png) [@Aumenn2003](https://forums.unrealengine.com/u/Aumenn2003)\
**Post date:** [January 22, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/1 "2022-01-22T15:34:19Z")

</div>

Hey everyone, can anyone explain the difference between both of these for me? I couldn’t pick up anything from the documentation and I also don’t know what virtualization is in UMG.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 24, 2022, 9:47am UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/2 "2022-01-24T09:47:41Z")

</div>

Imagine you have 200 widgets.

If you place widgets in a Scroll Box, all of them get instantiated, their assets loaded and it all sits in the memory. If you use a List View, only the necessary widgets will be created - on the fly. The List View will automagically maintain their lifecycle.

There’s a tangible example at the end of this post:

> [@Creating a combat log in Blueprint](https://forums.unrealengine.com/t/creating-a-combat-log-in-blueprint/150005/10):
>
> No problem, if you want to experiment with the List View instead: create an Object class blueprint in the content browser with an exposed text variable - it will be used to store data in the list view, called Entry Data below. once you have it, you can do this in the wLogLine’s class settings: The Implemented Interfaces bit on the left is the critical part here! It allows you to pull the data from a list view object and assign it to the widget’s variable. Th…

A combat log like this could easily grow to hold thousands of widget entries, but the likelihood of the user wanting to seem them all is pretty low. So it’s better to have a List View hold just the data, rather than have a Scroll Box keep it all alive at all times.

* * *

This tooltip:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa998d5a333619a1bbdf72ae0c51f862075578b2.png)

is not really _that_ accurate in my experience, more than 5 would be created and kept alive. I’d say around 10, but that’s much better than 200!

* * *

If you need to display just a handful of widgets, a Scroll Box will be more than fine. If you need to handle hundreds or thousands elements, consider paying the upfront cost of setting up a List View.

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [January 24, 2022, 9:52am UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/3 "2022-01-24T09:52:31Z")

</div>

To add on to this, you do need to be careful with listboxes however, as they are quite complicated and can lead to complex and bugged implementations.

They also do not play nice with controller support - It can be done, but it’s a ballache

---

<div class="post-metadata">

**Author:** ![SpheryFlex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpheryFlex](https://forums.unrealengine.com/u/SpheryFlex)\
**Post date:** [January 4, 2023, 5:35am UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/4 "2023-01-04T05:35:05Z")

</div>

Hello All ! Hello Everyone ! I just discovered this topic and I have small question.

As the listview only generate widget at runtime. How will you handle a Search box to retrieve, filter elements into the list ? I have 5000 lines. Cannot figure out, so I still use Scrollbox.

All the best !  
Spheryflex

---

<div class="post-metadata">

**Author:** ![AllGamesSuck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AllGamesSuck](https://forums.unrealengine.com/u/AllGamesSuck)\
**Post date:** [February 11, 2024, 4:27pm UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/5 "2024-02-11T16:27:21Z")

</div>

> [@Everynone](#):
>
> If you need to display just a handful of widgets, a Scroll Box will be more than fine.

Is there a limit number of widgets that’s recommended for the scroll box?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 11, 2024, 4:30pm UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/6 "2024-02-11T16:30:58Z")

</div>

There is not. Besides that, some widgets are more complex than others. Also depends on what you do with the scrollbox and its widgets.

If you keep destroying a scrollbox with 1000 children, you will need to reconstruct all of them next time it needs to show, and then keep all 1000 in memory for the duration.

This is not an issue with PanelViews.
