Hi @dedueand,
Welcome to the Radzen community!
This endless loop could happen if something triggers endless expanding of items for some reason. We can't determine if anything in your code is doing that though. I suggest you compare the implementation with the one from our online demo. Also I see you have a Change handler which you haven't provided - if you manually expand nodes there you may end up in this situation.