Expand TreeItem before add or remove a row


We load a tree grid dynamically (xmlkids).
We want to add a child at the end of the section. If the item was not opened and has a lot of childs, the new child is added at the beginning.
A similar situation occurs when we delete an item (the text is striked through). When we open this row (it was not opened so far) all childs are not marked in this manner.
Can you please advise how a child is added always at the end of the list and how all childs will be marked ‘deleted’ in case an deleted item having childs is opened the first time.

thank you in advance

Unfortunately it’s not available to operate with the child list in case of dynamic loading before these child items are loaded.