Listview - getting started in BP

I’m a bit rusty since I haven’t used treeview in a long time. But what I found was this:
Getting Children does not actually add those children to the listview items. So if you print the number of children the treeview has, it will always only be the amount that was actually added as items, no matter how many have children are displayed.
So, the Expand All description says, “Expands all items with children”. All ITEMS. So this node only expands the Items, or the base level of the tree.

You can use the Set Item Expansion function to expand an item without clicking on it.
So if you set its expansion during the Listviews Generated/Initialized event, it will expand the items as they are initialized. So now by default all Items will be expanded.

But you need some sort of query to know if they should be expanded when they are generated, other vice they will always become expanded as you scroll through the list.
So I used a Setup Boolean that is true by default and when all the items are added to the listview, it is set to false.

Try this;

You’ll notice that children are not showing up in one frame, but very quickly. Which is unfortunate, because that means we have to use a timer with an estimate on how long it takes the children to all be expanded, before we can set Setup to false.

It’s quite simple, but not that elegant. But it was the only way I could come up with.