Aggregation in tree grid

Can anyone share code snippets how to perform aggregation of amount from childern to parent in a tree grid (FVaadin low)?

This has nothing to do with TreeGrid. This logic you have to implement in the class you use in the TreeGrid as items

@adaptable-uakariHi Simon, thanks for your reply. If you can share a code snippets that will be appreciated.

I don’t have any example but

You have a class you use in the TreeGrid

That you’ll have a method getAmount

And there you sum the amounts of the children